uv is a Python package manager and project manager. It functions essentially as a venv manager and a pip replacement.

Quick links:

CLI commands

All commands are prefixed with uv.

  • add <PACKAGE> — adds a package to the project and resolves dependencies.
  • run <FILE> — runs the Python file. Drop-in replacement for python3 <FILE>.
  • lock — lockfile-related commands
    • --upgrade — bumps up the versions of all locked dependencies.

See also