setup-uv
Set up your GitHub Actions workflow with a specific version of https://docs.astral.sh/uv/
File Explorer
- SKILL.md
- check-all-tests-passed-needs.ts
- tsconfig.json
- codeql-analysis.yml
- release-drafter.yml
- release.yml
- test.yml
- update-docs.yml
- update-known-checksums.yml
- actionlint.yaml
- dependabot.yml
- python.json
- release-drafter.yml
- extensions.json
- settings.json
- restore-cache.test.ts
- checksum.test.ts
- known-version.test.ts
- update-known-checksums.test.ts
- custom-manifest.ndjson
- download-version.test.ts
- manifest.test.ts
- __init__.py
- pyproject.toml
- README.md
- uv.lock
- .python-version
- hello.py
- pyproject.toml
- README.md
- __init__.py
- pyproject.toml
- README.md
- uv.lock
- .python-version
- hello.py
- pyproject.toml
- README.md
- hello_world.py
- requirements.txt
- hello_world.py
- requirements.txt
- hello_world.py
- requirements.txt
- __init__.py
- pyproject.toml
- README.md
- uv.lock
- .python-version
- hello.py
- pyproject.toml
- README.md
- uv.toml
- .tool-versions
- checksumfile
- setup-inputs.ts
- inputs.test.ts
- requirements-file.test.ts
- requirements-hashes-file.test.ts
- tool-versions-file.test.ts
- uv-lock-file.test.ts
- version-request-resolver.test.ts
- workflow-run.yml
- index.cjs
- index.cjs
- index.cjs
- advanced-version-configuration.md
- caching.md
- customization.md
- environment-and-tools.md
- threat-model.md
- build-dist.mjs
- restore-cache.ts
- checksum.ts
- known-checksums.json
- known-checksums.ts
- known-version.ts
- update-known-checksums.ts
- download-version.ts
- manifest.ts
- variant-selection.ts
- hash-files.ts
- config-file.ts
- constants.ts
- fetch.ts
- inputs.ts
- logging.ts
- platforms.ts
- file-parser.ts
- requirements-file.ts
- resolve.ts
- specifier.ts
- tool-versions-file.ts
- types.ts
- uv-lock-file.ts
- version-request-resolver.ts
- save-cache.ts
- setup-uv.ts
- update-known-checksums.ts
- .editorconfig
- .git-blame-ignore-revs
- .gitattributes
- .gitignore
- .npmrc
- .nvmrc
- action-types.yml
- action.yml
- AGENTS.md
- biome.json
- CODEOWNERS
- jest.config.mjs
- LICENSE
- package-lock.json
- package.json
- README.md
- SECURITY.md
- tsconfig.json
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
python
View Details ▼
python
Python language interpreter.
python
Start a REPL (interactive shell):
python {{path/to/file.py}}
Execute a specific Python file:
python -i {{path/to/file.py}}
Execute a specific Python file and start a REPL:
uv pip
View Details ▼
uv pip
Provides pip-like commands for installing, uninstalling, and managing packages.
uv pip install {{package}}
Install a package:
uv pip install {{[-r|--requirements]}} {{requirements.txt}}
Install packages from a requirements file:
uv pip install {{package==1.2.3}}
Install a package with a specific version:
uv python
View Details ▼
uv python
Manage Python versions and installations.
uv python list
List all available Python installations:
uv python install {{version}}
Install a Python version:
uv python uninstall {{version}}
Uninstall a Python version:
uv run
View Details ▼
uv run
Run a command or script in the project environment.
uv run {{path/to/script.py}}
Run a Python script:
uv run {{[-m|--module]}} {{module_name}}
Run a Python module:
uv run {{[-w|--with]}} {{package}} {{command}}
Run a command with additional packages installed temporarily:
uv sync
View Details ▼
uv sync
Update the project's environment to match the lockfile.
uv sync
Sync the project environment with the lockfile:
uv sync --all-extras
Sync and include all optional dependencies:
uv sync --extra {{extra_name}}
Sync with specific optional dependencies:
venv
View Details ▼
venv
Create lightweight virtual environments in Python.
python -m venv {{path/to/virtual_environment}}
Create a Python virtual environment:
{{[.|source]}} {{path/to/virtual_environment}}/bin/activate
Activate the virtual environment (Linux and macOS):
{{path\to\virtual_environment}}\Scripts\activate.bat
Activate the virtual environment (Windows):
