The newly approved Python Enhancement Proposal 751 gives Python a standard lock file format for specifying the dependencies of projects. Here’s the what, why, and when. Python Enhancement Proposal ...
pyproject.toml declares dependencies. uv.lock records the resolved versions. requirements.txt is a generated, pip-compatible export of that resolution, including development groups when present.