# UV — Ultra-Fast Python Package Manager by Astral > Rust-powered Python package and project manager. 10-100x faster than pip. Replaces pip, pip-tools, virtualenv, pyenv, and pipx with a single tool. By the creators of Ruff. 45,000+ stars. ## Install Save as a script file and run: ## Quick Use ```bash # Install curl -LsSf https://astral.sh/uv/install.sh | sh # Create a project uv init my-project && cd my-project # Add dependencies (instant) uv add fastapi uvicorn sqlalchemy # Run your app uv run python main.py # Or run scripts directly uv run --with requests python -c "import requests; print(requests.get('https://httpbin.org/ip').json())" ``` --- ## Intro UV is a Rust-powered Python package and project manager by Astral (creators of Ruff) with 45,000+ GitHub stars. It replaces pip, pip-tools, virtualenv, pyenv, and pipx with a single tool that is 10-100x faster. Install packages in milliseconds, resolve dependencies in seconds, and manage Python versions seamlessly. Best for Python developers who want instant package management and reproducible environments. Works with: any Python project, pip-compatible. Setup time: under 1 minute. --- ## What UV Replaces | Old Tool | UV Equivalent | Speed Improvement | |----------|--------------|-------------------| | pip install | `uv add` | 10-100x faster | | pip-compile | `uv lock` | 50x faster | | virtualenv | `uv venv` | 80x faster | | pyenv | `uv python install` | Built-in | | pipx | `uv tool install` | Built-in | | pip-sync | `uv sync` | 100x faster | ### Project Management ```bash # Initialize project with pyproject.toml uv init my-app # Add dependencies uv add fastapi "sqlalchemy>=2.0" uv add --dev pytest ruff # Lock dependencies (reproducible builds) uv lock # Sync environment uv sync ``` ### Python Version Management ```bash # Install Python versions uv python install 3.12 3.11 3.10 # Pin project to specific version uv python pin 3.12 # Run with any version uv run --python 3.11 python script.py ``` ### Script Running ```bash # Run scripts with inline dependencies uv run --with pandas --with matplotlib python analyze.py # Run from pyproject.toml uv run pytest uv run ruff check . ``` ### Global Tool Installation ```bash # Install CLI tools (like pipx) uv tool install ruff uv tool install black uv tool install httpie ``` ### Performance Benchmarks ``` # Installing 50 packages: pip: 45.2s uv: 0.8s (56x faster) # Resolving dependencies (Django project): pip-compile: 12.3s uv lock: 0.2s (61x faster) # Creating virtualenv: virtualenv: 2.1s uv venv: 0.02s (105x faster) ``` ### Key Stats - 45,000+ GitHub stars - By Astral (creators of Ruff) - 10-100x faster than pip - Replaces 5+ Python tools - pip-compatible (reads requirements.txt) ### FAQ **Q: What is UV?** A: UV is a Rust-powered Python package manager that replaces pip, virtualenv, pyenv, and pipx with a single tool that is 10-100x faster. **Q: Is UV free?** A: Yes, fully open-source under MIT/Apache 2.0 license. **Q: Is UV compatible with existing projects?** A: Yes, UV reads requirements.txt, pyproject.toml, and setup.py. It is a drop-in replacement for pip. --- ## Source & Thanks > Created by [Astral](https://github.com/astral-sh). Licensed under MIT/Apache 2.0. > > [uv](https://github.com/astral-sh/uv) — ⭐ 45,000+ Thanks to Astral for making Python package management finally fast. --- ## 快速使用 ```bash curl -LsSf https://astral.sh/uv/install.sh | sh uv init my-project && cd my-project uv add fastapi uvicorn uv run python main.py ``` --- ## 简介 UV 是 Astral 团队(Ruff 的创造者)开发的 Rust 驱动的 Python 包管理器,GitHub 45,000+ stars。单一工具替代 pip、virtualenv、pyenv、pipx,速度快 10-100 倍。适合需要即时包管理和可复现环境的 Python 开发者。 --- ## 来源与感谢 > Created by [Astral](https://github.com/astral-sh). Licensed under MIT/Apache 2.0. > > [uv](https://github.com/astral-sh/uv) — ⭐ 45,000+ --- Source: https://tokrepo.com/en/workflows/114a0496-b111-4f3e-bc56-f023b7789d21 Author: Script Depot