Skip to content

UV

https://github.com/astral-sh/uv

https://docs.astral.sh/uv/

Install

curl -LsSf https://astral.sh/uv/install.sh | sh

# brew 
brew install uv

Projects

uv init example
cd example
uv add ruff
uv run ruff check
uv lock
uv sync

Commands

# install python version
uv python install 3.10 3.11 3.12

uv venv --python 3.12.0

uv run --python pypy@3.8 -- python
# Install the locked requirements
uv pip sync docs/requirements.txt