uv: A Rust-based Python package manager 100 times faster than pip

astral-sh/uv

·

uv is a Python package and project management tool written in Rust. It consolidates tasks previously handled by multiple tools such as pip, pip-tools, poetry, pyenv, and twine into a single binary. It supports macOS, Linux, and Windows, and can be installed without a Rust or Python environment.

The core strength is speed. It offers performance 10 to 100 times faster than pip and uses a dependency resolver based on the PubGrub algorithm. It deduplicates dependencies through a global cache to manage disk space efficiently. It also supports Cargo-style workspaces to ensure scalability for large-scale projects.

It allows declaring inline metadata for single-file scripts to run them in isolated virtual environments. It directly manages Python version installation and switching, and also supports alternative implementations such as pypy. It provides a pip-compatible interface, allowing users to maintain existing workflows while experiencing immediate performance improvements.

Development and operations are handled by Astral, the creators of Ruff and ty. It is dual-licensed under Apache-2.0 and MIT and is ready for stable use in production environments. It is suitable for developers who want to reduce dependency resolution time and environment setup overhead in complex Python projects.

GitHub
GitHub repository

astral-sh/uv

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

Rust

This introduction was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report errors, attribution issues, or removal requests via Contact.