Python dependencies states managed via uv(illustrated)

1 min read Original article ↗

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.

Python dependencies states managed via uv

Note: "libs in env" refers to installed dependencies in a virtual environment created by uv venv.