uv can substitute for Poetry for Python project dependency management. Both provide project declarations and resolved dependency records, but tool-specific settings and lockfiles require migration. The decision should include package-source rules, build configuration and execution behavior rather than treating a shared pyproject.toml filename as complete compatibility.[2][3][6][7]
Overview
uv is a Python package and project manager developed by Astral. It combines project dependency management with Python-version handling, isolated script execution and command-line tool environments. A separate pip-style interface supports familiar installation workflows, while the project interface uses its own metadata, lockfile and synchronization model.[2]
Project environments
A uv project is identified by pyproject.toml, with a managed environment normally stored in .venv. The project's dependency declarations and the installed environment serve different purposes. uv run and uv sync can create or refresh that environment, so a command intended to run application code may first perform dependency-management work.[3][4]
Lockfiles and interchange
The uv.lock file records resolved dependencies across Python markers such as platform, architecture and interpreter version. Its format is specific to uv. The standardized pylock.toml format is supported as an export target and through the pip-style interface, but cannot express all uv project functionality. A portable resolution file is therefore not the same as a complete transfer of project configuration.[3]
Controlling changes
By default, commands using the project environment can lock and synchronize automatically. The locked option requires an up-to-date lockfile and errors rather than changing it. Frozen mode instead uses the existing lock without checking its freshness. These settings answer different questions: whether configuration and lock agree, and whether a particular recorded resolution should be reused.[4]
Compatibility limits
The pip-style commands target common pip and pip-tools workflows rather than exact behavioral compatibility. In particular, uv does not read pip-specific configuration such as pip.conf or PIP_INDEX_URL. Migration must therefore include repository and environment configuration, not merely replacing a command name in automation.[5]
Platforms and licensing
uv supports Windows, macOS and Linux. Its code is available under either MIT or Apache-2.0 at the user's option. This licensing applies to the manager, not every Python distribution or package it downloads. Package availability and the project's supported interpreter range still determine whether a resolved environment can be installed for a particular target.[1][2][3]
Capabilities & limitations
Project locking
supported
Maintains a uv-specific universal lockfile and managed environment.[3]
Dependency and environment management · Windows, macOS, Linux · Package availability and runtime requirements apply