uv — The Unified Python Toolchain

Parent: Python Patterns and Best Practices · researched 2026-06-01T04:44:00.144Z· 11 sources · 9 concepts · skill uv-python-toolchain

uv is an extremely fast Python package and project manager written in Rust by

uv — The Unified Python Toolchain

Command surface at a glance

Single project

Workspaces (monorepo)

2. The universal lockfile (`uv.lock`)

3. Python version install & pinning

4. Tool / pipx replacement (`uv tool`, `uvx`)

5. pip-compatible interface (`uv pip`)

Build backend, publishing & PEP 723 scripts

Configuration & cache

Practical patterns

Anti-patterns

Troubleshooting

References

Children

Frontier under this node: Build backend & publishing (uv_build default since 2025, uv build, uv publish), Configuration & cache ([tool.uv]/uv.toml, UV_* env vars, [[tool.uv.index]], content-addressed cache), Lockfile export & interop (uv export to requirements.txt / pylock.toml PEP 751 / CycloneDX SBOM), PEP 723 inline-script metadata (uv run script.py, uv add --script, --with), Project & workspace management (uv init/add/remove/sync/run/lock/tree, [dependency-groups] PEP 735, [tool.uv.sources], multi-package workspaces with shared uv.lock), Python version install & pinning (uv python install/pin/list/find, .python-version, python-preference managed vs system, UV_PYTHON_DOWNLOADS), Tool / pipx replacement (uvx / uv tool run ephemeral, uv tool install/upgrade/list/update-shell), Universal lockfile (uv.lock cross-platform marker resolution, --resolution highest/lowest/lowest-direct, --prerelease, --fork-strategy, --locked/--frozen/--check, requires-python subset rule), pip-compatible interface (uv pip install/compile --universal/sync, uv venv, --system)

← the whole tree · 3D view· how to read this page