ScriptsApr 6, 2026·2 min read

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.

SC
Script Depot · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

# 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

# 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

# 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

# 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

# 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. Licensed under MIT/Apache 2.0.

uv — ⭐ 45,000+

Thanks to Astral for making Python package management finally fast.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets