This cheat sheet provides a concise overview of the uv Python packaging tool for developers.
Poetry vs UV compares poetry to uv.
- Fast installation instructions
- Managing Python versions with
uv - Creating and activating virtual environments
- Installing, uninstalling, and listing packages
- Using
uv lockanduv syncfor dependency resolution - Managing optional dependency groups (e.g.,
dev,prod) - Running commands in virtual environments with
uv run - Using
uv tool runfor ephemeral tooling environments
This sheet is intended for developers who are already familiar with:
- Python packaging tools like
pipandpoetry - Virtual environments and their purpose