Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Installation
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh
Usage
- Migrate from other Python projects to uv.
uvx migrate-to-uv
uv init --package new_project_name
uv init --package
uv init --script example.py --python 3.12
uv lock
uv lock --upgrade
uv sync
uv run python ...
uv run /path/to/uv_init_pyscript
uv build
uv publish