uvΒΆ
π¦ Installation
Install
curl -LsSf https://astral.sh/uv/install.sh | sh
uv --versionUpdate
uv self updateπ Basic Commands
uv --help
uv init
uv add requests
uv remove requests
uv sync
uv run python -Vπ Project Management
Create a project
uv init myapp
cd myappAdd dependencies
uv add fastapi
uv add "requests>=2.31"Remove dependencies
uv remove fastapiπ Python Version Management
uv python list
uv python install 3.12
uv python pin 3.12
uv python use 3.12π Scripts & Tools
Run scripts
uv run python app.py
uv run pytestRun tools without installing
uvx ruff check .
uvx black .π Lockfiles & Reproducibility
uv lock
uv sync --frozen
uv export -o requirements.txt