An extremely fast Python package and project manager, written in Rust. https://docs.astral.sh/uv
  • Rust 97.4%
  • Python 2%
  • RenderScript 0.3%
  • Shell 0.1%
Find a file
renovate[bot] b73f6cbbc8
Some checks are pending
CI / plan (push) Waiting to run
CI / check-fmt (push) Waiting to run
CI / check-lint (push) Blocked by required conditions
CI / check-docs (push) Blocked by required conditions
CI / check-zizmor (push) Blocked by required conditions
CI / check-publish (push) Blocked by required conditions
CI / check-release (push) Blocked by required conditions
CI / check-generated-files (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / test-windows-trampolines (push) Blocked by required conditions
CI / build-dev-binaries (push) Blocked by required conditions
CI / test-smoke (push) Blocked by required conditions
CI / test-integration (push) Blocked by required conditions
CI / test-system (push) Blocked by required conditions
CI / test-ecosystem (push) Blocked by required conditions
CI / build-release-binaries (push) Blocked by required conditions
CI / build-docker (push) Blocked by required conditions
CI / bench (push) Blocked by required conditions
CI / test uv publish (push) Blocked by required conditions
CI / all required jobs passed (push) Blocked by required conditions
Update debian Docker tag to v13 (#17695)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| debian | container | major | `bookworm` → `trixie` |

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on
Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule
defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/uv).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45Mi4xIiwidXBkYXRlZEluVmVyIjoiNDIuOTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYnVpbGQ6c2tpcC1yZWxlYXNlIiwiaW50ZXJuYWwiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 07:22:13 -06:00
.cargo Don't build uv-dev by default (#6827) 2024-08-29 15:44:13 -04:00
.claude Install gh via apt in Claude Code for Web sessions (#17630) 2026-01-20 13:10:04 -06:00
.config Add a nextest setup hook and optional code signing for tests on macOS (#17542) 2026-01-20 08:43:40 -06:00
.github Update debian Docker tag to v13 (#17695) 2026-01-27 07:22:13 -06:00
assets
changelogs fix small typos (#16357) 2025-10-21 12:11:59 +00:00
crates Use Rust 1.91 features Duration::from_mins and Path::with_added_extension (#17710) 2026-01-27 13:16:35 +01:00
docs Bump version to 0.9.27 (#17706) 2026-01-26 22:38:10 +00:00
python Use ty to type-check Python files (#17229) 2026-01-07 12:25:15 -06:00
scripts Support Trusted Publishing with pyx (#17438) 2026-01-20 22:18:26 +00:00
test Fix torch ecosystem check (#17637) 2026-01-21 12:01:02 +00:00
.editorconfig Ignore UV_CACHE_DIR in help tests (#7895) 2024-10-04 09:41:25 -05:00
.gitattributes Mark .inc files as Rust for GitHub Linguist (#9890) 2024-12-13 22:17:23 +00:00
.gitignore Add .prism to ignores (#17704) 2026-01-26 16:17:45 -06:00
.ignore github: include /.github/ in ripgrep searches by default (#12243) 2025-03-17 12:13:49 -05:00
.pre-commit-config.yaml Update pre-commit hook astral-sh/ruff-pre-commit to v0.14.13 (#17684) 2026-01-25 21:00:51 -05:00
.prettierignore Add .prism to ignores (#17704) 2026-01-26 16:17:45 -06:00
.prettierrc Configure prettier prose-wrap in .prettierrc instead of the CLI (#17184) 2025-12-18 18:54:23 -06:00
.python-versions Sync latest Python releases (#15940) 2025-09-19 18:13:33 +00:00
_typos.toml Move test support files out of scripts/ into test/ 2025-12-09 10:06:05 -06:00
BENCHMARKS.md Update BENCHMARKS.md (#6258) 2024-08-20 16:42:57 +00:00
Cargo.lock Require fs-err 3.2.2 (for File::set_modified) (#17718) 2026-01-27 12:31:36 +00:00
Cargo.toml Require fs-err 3.2.2 (for File::set_modified) (#17718) 2026-01-27 12:31:36 +00:00
CHANGELOG.md Bump version to 0.9.27 (#17706) 2026-01-26 22:38:10 +00:00
CLAUDE.md Instruct Claude to avoid updating the whole lockfile (#17624) 2026-01-20 10:39:01 -06:00
clippy.toml Manually parse and reconcile Boolean environment variables (#17321) 2026-01-06 20:43:04 +00:00
CODE_OF_CONDUCT.md Copy the Code of Conduct from Ruff (#17145) 2025-12-16 14:12:15 +00:00
CONTRIBUTING.md Add a nextest setup hook and optional code signing for tests on macOS (#17542) 2026-01-20 08:43:40 -06:00
dist-workspace.toml Move release plan checks to a separate workflow (#17422) 2026-01-12 14:49:40 -06:00
Dockerfile Update Rust toolchain to 1.93 and MSRV to 1.91 (#17677) 2026-01-25 20:44:10 -05:00
LICENSE-APACHE Update copyright year (#10297) 2025-01-04 18:31:36 +00:00
LICENSE-MIT Update copyright year (#10297) 2025-01-04 18:31:36 +00:00
mkdocs.yml Remove redundant mkdocs insiders installs (#17477) 2026-01-15 10:25:55 -06:00
PIP_COMPATIBILITY.md
pyproject.toml Bump version to 0.9.27 (#17706) 2026-01-26 22:38:10 +00:00
README.md Remove emojis from README (#17476) 2026-01-15 07:23:25 -06:00
ruff.toml Move test support files out of scripts/ into test/ 2025-12-09 10:06:05 -06:00
rust-toolchain.toml Update Rust toolchain to 1.93 and MSRV to 1.91 (#17677) 2026-01-25 20:44:10 -05:00
rustfmt.toml Add rustfmt.toml (#14072) 2025-06-16 10:05:56 -04:00
SECURITY.md Add CVE disclosure to security policy (#11037) 2025-01-28 14:36:53 -06:00
STYLE.md Follow the style guide in the style guide (#16466) 2025-10-27 15:46:39 -05:00
uv.schema.json Add support for ROCm 7.0 and 7.1 (#17681) 2026-01-24 10:54:03 -05:00

uv

uv image image image Actions status Discord

An extremely fast Python package and project manager, written in Rust.

Shows a bar chart with benchmark results.

Installing Trio's dependencies with a warm cache.

Highlights

uv is backed by Astral, the creators of Ruff and ty.

Installation

Install uv with our standalone installers:

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Or, from PyPI:

# With pip.
pip install uv
# Or pipx.
pipx install uv

If installed via the standalone installer, uv can update itself to the latest version:

uv self update

See the installation documentation for details and alternative installation methods.

Documentation

uv's documentation is available at docs.astral.sh/uv.

Additionally, the command line reference documentation can be viewed with uv help.

Features

Projects

uv manages project dependencies and environments, with support for lockfiles, workspaces, and more, similar to rye or poetry:

$ uv init example
Initialized project `example` at `/home/user/example`

$ cd example

$ uv add ruff
Creating virtual environment at: .venv
Resolved 2 packages in 170ms
   Built example @ file:///home/user/example
Prepared 2 packages in 627ms
Installed 2 packages in 1ms
 + example==0.1.0 (from file:///home/user/example)
 + ruff==0.5.0

$ uv run ruff check
All checks passed!

$ uv lock
Resolved 2 packages in 0.33ms

$ uv sync
Resolved 2 packages in 0.70ms
Audited 1 package in 0.02ms

See the project documentation to get started.

uv also supports building and publishing projects, even if they're not managed with uv. See the publish guide to learn more.

Scripts

uv manages dependencies and environments for single-file scripts.

Create a new script and add inline metadata declaring its dependencies:

$ echo 'import requests; print(requests.get("https://astral.sh"))' > example.py

$ uv add --script example.py requests
Updated `example.py`

Then, run the script in an isolated virtual environment:

$ uv run example.py
Reading inline script metadata from: example.py
Installed 5 packages in 12ms
<Response [200]>

See the scripts documentation to get started.

Tools

uv executes and installs command-line tools provided by Python packages, similar to pipx.

Run a tool in an ephemeral environment using uvx (an alias for uv tool run):

$ uvx pycowsay 'hello world!'
Resolved 1 package in 167ms
Installed 1 package in 9ms
 + pycowsay==0.0.0.2
  """

  ------------
< hello world! >
  ------------
   \   ^__^
    \  (oo)\_______
       (__)\       )\/\
           ||----w |
           ||     ||

Install a tool with uv tool install:

$ uv tool install ruff
Resolved 1 package in 6ms
Installed 1 package in 2ms
 + ruff==0.5.0
Installed 1 executable: ruff

$ ruff --version
ruff 0.5.0

See the tools documentation to get started.

Python versions

uv installs Python and allows quickly switching between versions.

Install multiple Python versions:

$ uv python install 3.12 3.13 3.14
Installed 3 versions in 972ms
 + cpython-3.12.12-macos-aarch64-none (python3.12)
 + cpython-3.13.9-macos-aarch64-none (python3.13)
 + cpython-3.14.0-macos-aarch64-none (python3.14)

Download Python versions as needed:

$ uv venv --python 3.12.0
Using Python 3.12.0
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate

$ uv run --python pypy@3.8 -- python --version
Python 3.8.16 (a9dbdca6fc3286b0addd2240f11d97d8e8de187a, Dec 29 2022, 11:45:30)
[PyPy 7.3.11 with GCC Apple LLVM 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>>

Use a specific Python version in the current directory:

$ uv python pin 3.11
Pinned `.python-version` to `3.11`

See the Python installation documentation to get started.

The pip interface

uv provides a drop-in replacement for common pip, pip-tools, and virtualenv commands.

uv extends their interfaces with advanced features, such as dependency version overrides, platform-independent resolutions, reproducible resolutions, alternative resolution strategies, and more.

Migrate to uv without changing your existing workflows — and experience a 10-100x speedup — with the uv pip interface.

Compile requirements into a platform-independent requirements file:

$ uv pip compile docs/requirements.in \
   --universal \
   --output-file docs/requirements.txt
Resolved 43 packages in 12ms

Create a virtual environment:

$ uv venv
Using Python 3.12.3
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate

Install the locked requirements:

$ uv pip sync docs/requirements.txt
Resolved 43 packages in 11ms
Installed 43 packages in 208ms
 + babel==2.15.0
 + black==24.4.2
 + certifi==2024.7.4
 ...

See the pip interface documentation to get started.

Contributing

We are passionate about supporting contributors of all levels of experience and would love to see you get involved in the project. See the contributing guide to get started.

FAQ

How do you pronounce uv?

It's pronounced as "you - vee" (/juː viː/)

How should I stylize uv?

Just "uv", please. See the style guide for details.

What platforms does uv support?

See uv's platform support document.

Is uv ready for production?

Yes, uv is stable and widely used in production. See uv's versioning policy document for details.

Acknowledgements

uv's dependency resolver uses PubGrub under the hood. We're grateful to the PubGrub maintainers, especially Jacob Finkelman, for their support.

uv's Git implementation is based on Cargo.

Some of uv's optimizations are inspired by the great work we've seen in pnpm, Orogene, and Bun. We've also learned a lot from Nathaniel J. Smith's Posy and adapted its trampoline for Windows support.

License

uv is licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in uv by you, as defined in the Apache-2.0 license, shall be dually licensed as above, without any additional terms or conditions.