Python uv¶
- ID
uv- Links
- Upstream stars
⭐ 90,277
- Last commit
2026-09-28
- Version requirement
>= 0.5
- Cooldown
✓
- Platforms
🅱️ BSD · 🐧 Linux · 🍎 macOS · ⨂ Unix · 🪟 Windows
- Operations
installed·outdated·install·upgrade·upgrade_all·remove·cleanup- purl types
pkg:pypi/·pkg:uv/- CLI name
uv- Every call
uv --color never --no-progress <command>- Issues and PRs
- Source
Python packages managed with uv’s uv pip interface.
Installed and outdated packages are read with uv pip list (adding
--outdated and --format=json), acting on whatever environment uv
resolves, exactly as a bare uv pip call in the same shell would. The
--outdated listing sets the >=0.5.0 version floor, the first uv
release to ship it. The release-age cooldown rides on uv’s
--exclude-newer resolver option, which every resolving subcommand
honors, so one cutoff covers install, upgrade and outdated together.
Hint
Package specs are passed unquoted, working around uv parse failures on quoted specs.
What mpm adds to uv¶
Through mpm, uv gains a one-command upgrade --all that refreshes every outdated package in a single run.
Bigger still, mpm reaches across every manager at once: mpm installed and mpm outdated cover uv alongside pip, pipx, pipxu, uvx and any other manager you run in one table, mpm upgrade --all updates them together, and mpm sbom exports the whole machine as one bill of materials.
Every mpm command also gains --dry-run and --plan previews, cross-scheme version comparison and purl identifiers. See manager augmentations for how each one is built.
Your uv commands, in mpm¶
You already know uv: each operation maps one-to-one onto mpm, in an interface shared by every manager.
To… |
With |
With |
|---|---|---|
List what’s installed |
|
|
List outdated packages |
|
|
Install a package |
|
|
Upgrade one package |
|
|
Upgrade everything |
— |
|
Remove a package |
|
|
Clear caches |
|
|
Prefix any command above with --dry-run to simulate the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.
Operations¶
Operation |
Supported |
Notes |
|---|---|---|
|
✅ |
|
|
✅ |
|
|
||
|
||
|
✅ |
|
|
✅ |
|
|
✅ |
No native |
|
✅ |
|
|
||
|
✅ |
|
|
Configuration¶
Ignore
uvon thempmCLI by passing the--no-uvoption.Ignore it for every run in your configuration:
[mpm] uv = false
Raise the timeout of all
uvcalls:[mpm.overrides.uv] timeout = 900
Run
mpm config-template uvto print all overridable settings for your configuration file:[mpm.overrides.uv] cli_names = [ "uv", ] cli_search_path = [] dry_run = false ignore_auto_updates = true plan = false post_args = [] pre_args = [ "--color", "never", "--no-progress", ] pre_cmds = [] requirement = ">=0.5.0" stop_on_error = false unmaintained = false version_cli_options = [ "--version", ] version_regexes = [ "uv\\s+(?P<version>\\S+)", ]
The arguments and environment variables listed in the box atop this page are forced on every uv call, so runs stay quiet, non-interactive and reproducible: the defaults you would set in CI anyway.
Recipes¶
A few jobs you would otherwise script around uv, one mpm command each:
Snapshot and clone a machine:
mpm --uv dump uv.toml, thenmpm restore uv.tomlon the next one.Export a compliance SBOM:
mpm --uv sbom(CycloneDX by default,--spdxfor SPDX).
Privilege escalation¶
mpm runs this manager as the current user and never prepends sudo by default. Flip the policy for its privileged operations with --sudo or the per-manager sudo override.
None of its operations is privileged.
See privilege escalation for the full policy.
Cooldown¶
mpm natively enforces its release-age cooldown on Python uv, injecting the UV_EXCLUDE_NEWER environment variable on every call. Point it at a window (mpm --cooldown 7 --uv upgrade --all) to skip anything published in the last 7 days: a guard against a compromised or yanked fresh release landing before anyone notices.
Status: ✅ Enforced
Mechanism:
exclude-newerenvUV_EXCLUDE_NEWERReference: uv docs
A cooldown only pays off where a compromised release can be withdrawn while the clock runs, and can only be emulated where the registry dates its releases. From the retraction table:
Reference traces¶
A collection of raw native outputs captured from the manager’s own CLI and recorded in the manager source. If you know Python uv well and a transcript below looks wrong, or a newer release changed its output format, report it.
$ uv --color never --no-progress pip list --format=json
[
{
"name": "markupsafe",
"version": "2.1.5"
},
{
"name": "meta-package-manager",
"version": "5.17.0",
"editable_project_location": "/Users/kde/meta-package-manager"
},
{
"name": "myst-parser",
"version": "3.0.1"
}
]
$ uv --color never --no-progress pip list --outdated --format=json
[
{
"name": "lark-parser",
"version": "0.7.8",
"latest_version": "0.12.0",
"latest_filetype": "wheel"
},
{
"name": "types-setuptools",
"version": "75.3.0.20241107",
"latest_version": "75.3.0.20241112",
"latest_filetype": "wheel"
}
]
Version check¶
The version is extracted from the output of uv --version with:
r"uv\s+(?P<version>\S+)"
Upstream project¶
Metrics |
|
|---|---|
Activity |
|
Popularity |
|
Metadata |
|
Changelog¶
7.4.0(2026-07-25)cleanupskips uv’s cache commands whenmpmitself was launched byuv runoruvx, whose parent process locks the cache for as long asmpmlives: eachuv cachecommand would otherwise wait on its own ancestor forUV_LOCK_TIMEOUT(300 seconds by default) and fail, stalling the cleanup for ten minutes.
6.0.2(2026-01-09)Workaround
uvparsing issues with package specifiers by not quoting them. Closes #1653.
5.19.0(2024-11-14)Implement
outdatedandcleanupoperation.Bump minimal requirement to
0.5.0.Always invoke
uvwith--no-progressparameter.
5.17.0(2024-07-08)Add support for
uvpackage manager for Python.