Several dependency management file types are available in the Python ecosystem—requirements.txt, uv.lock, pyproject.toml, etc.
With uv, we can handle most of them. Here is a transition graph showing how to move from one state to another using uv commands.
Note: "libs in env" refers to installed dependencies in a virtual environment created by uv venv.