uv-toolbox
uv-toolbox is a CLI tool for managing Python tool environments. It will help
you create multiple virtual environments and manage their dependencies through a
declarative configuration file.
Here is an example in YAML format:
environments:
- name: env1
dependencies: [ruff==0.13.0, black]
- name: env2
dependencies: [isort, flake8]
sources:
flake8:
git: https://github.com/PyCQA/flake8.git
tag: 7.3.0
Each environment is a small uv project: dependencies, sources,
requires_python and a uv passthrough for [tool.uv] settings work as they
do in a pyproject.toml, and locking uses uv lock. See the
configuration docs.
Configuration Options
Virtual Environment Location:
By default, virtual environments are stored in ~/.cache/uv-toolbox/ using
content-addressed storage. This means:
- Automatic deduplication: Identically locked environments across projects share the same venv
- No naming conflicts: Venvs are organized by content hash, not names
- Works from subdirectories: Run commands from anywhere in your project
# Default: centralized, content-addressed storage
# (no venv_path needed - defaults to ~/.cache/uv-toolbox)
environments:
- name: formatting
dependencies: [ruff==0.13.0]
- name: testing
dependencies: [pytest==8.0.0]
# Optional: local storage (per-project)
venv_path: .uv-toolbox
How it works:
- Each environment's venv location is determined by hashing its locked packages
- Projects with identically locked environments automatically share the same venv
- Config files are discovered by walking up the directory tree
Executables:
By default, shims expose the console_scripts declared by the packages in
dependencies. Scripts belonging only to transitive dependencies are excluded.
Use omit_executables to hide selected scripts, or executables_override for
an exact allowlist:
environments:
- name: formatting
dependencies: [ruff==0.13.0, black]
omit_executables: [black]
- name: no-shims
dependencies: [pytest]
executables_override: []
- Automatic: First-order package scripts are exposed without duplication
- Selective omission: Remove individual automatically discovered scripts
- Exact override: Use any list, including
[]to expose nothing
The legacy executables key emits a deprecation warning and will be removed in
uv-toolbox 1.0. Use executables_override instead.
The requirements and requirements_file keys are deprecated in the same way.
Run uv-toolbox migrate-config to convert them to dependencies and sources
(see migrating).
Usage
Install environments:
uv-toolbox install
Each environment is locked with uv lock and installed with uv sync --frozen.
Later installs sync from the lock via uv's local cache, with no network and no
re-resolution.
Commit a repo lockfile, which embeds every environment's uv.lock:
uv-toolbox lock # writes uv-toolbox.lock, keeping existing pins
uv-toolbox lock --upgrade # re-resolve everything
uv-toolbox lock --upgrade-package ruff # re-resolve one package
uv-toolbox lock --check # verify in CI, offline, without writing
Run a command inside an environment (uses the configured default if set,
otherwise pass --env):
uv-toolbox exec --env env1 -- ruff --version
Add shim scripts to your PATH for direct tool access:
eval "$(uv-toolbox shim)"
This creates wrapper scripts for the console scripts declared by each
environment's dependencies. Transitive package scripts and the venv's
Python/pip executables are not exposed.
If you use mise, the mise plugin handles PATH management automatically on every shell activation — see the mise integration docs.
Metadata
Release files for uv-toolbox 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uv_toolbox-0.4.1.tar.gz | 31.6 kB | Without provenance | Details for uv_toolbox-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uv_toolbox-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for uv_toolbox-0.4.1-py3-none-any.whl |
Total release size: 69.1 kB
Release files / uv_toolbox-0.4.1.tar.gz
| Download URL | uv_toolbox-0.4.1.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81601dfcbba8a5c2389a6e1b8d82f5b3cf81021d4849a1283fc5ae8728859b27
|
|
BLAKE2b-256 checksum How to use checksums |
e355c476d8fc07846fa85321636b0f33cc981206a5b537dc36445cb1b892a794
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / uv_toolbox-0.4.1-py3-none-any.whl
| Download URL | uv_toolbox-0.4.1-py3-none-any.whl |
|---|---|
| Size | 37.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be4a885d7f817ae47afcb9de39b8e54b84aeb5887cf2e74eec1659109b02905f
|
|
BLAKE2b-256 checksum How to use checksums |
0beb598fde2e961156ae85da829d08fb5f87a023a391eac6e65f7a90f29f3e86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for uv-toolbox 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.