Visualize uv.lock dependency sizes as a nested tree with deduplication metrics
Project description
uv-dep-tree
Visualize uv.lock dependency sizes as a nested tree with deduplication metrics.
Installation
# Run directly without installing (recommended)
uvx uv-dep-tree
# Or install globally
pip install uv-dep-tree
Usage
# Generate HTML from uv.lock in current or parent directory
uv-dep-tree
# Generate from specific file
uv-dep-tree /path/to/uv.lock
# Custom output path
uv-dep-tree /path/to/uv.lock -o deps.html
# Live server with auto-refresh on file changes
uv-dep-tree --serve
# Live server on custom port
uv-dep-tree --serve --port 3000
Understanding the Output
Background colors:
- Blue = package's wheel size
- Green = dependencies' sizes
Number colors:
- Purple = virtual size (as if duplicated)
- Green = amortized size (actual, after deduplication)
Columns: Wheel | Deps | Tree — each showing Virtual / Amortized
Occurrence badges (e.g., ×3): Package appears 3 times in tree; amortized size is divided by 3.
Deduplication Math
When package appears N times: Amortized = Size ÷ N. The root's amortized total equals actual download size.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uv_dep_tree-0.1.0.tar.gz.
File metadata
- Download URL: uv_dep_tree-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2fbde5e5a8a2c64fb68c00d7242d24ada85c1dab09b220c9b487eee929f0d5b
|
|
| MD5 |
214123d76b7173194eb90fdc72164a8a
|
|
| BLAKE2b-256 |
dd962ce41ce5cf4635a0a5d73a3a75eea56ada7ea39600ef3ccc1e6cf7b39358
|
Provenance
The following attestation bundles were made for uv_dep_tree-0.1.0.tar.gz:
Publisher:
publish.yml on p120ph37/uv-dep-tree
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uv_dep_tree-0.1.0.tar.gz -
Subject digest:
f2fbde5e5a8a2c64fb68c00d7242d24ada85c1dab09b220c9b487eee929f0d5b - Sigstore transparency entry: 743938527
- Sigstore integration time:
-
Permalink:
p120ph37/uv-dep-tree@aa0f6e00b63ad4c27c5bd306cf2b3caebb438a68 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/p120ph37
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa0f6e00b63ad4c27c5bd306cf2b3caebb438a68 -
Trigger Event:
release
-
Statement type:
File details
Details for the file uv_dep_tree-0.1.0-py3-none-any.whl.
File metadata
- Download URL: uv_dep_tree-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4be57066992853d163b3b6c3525d52596d2049035f2988b3c32d38333186a50f
|
|
| MD5 |
07145cfca093a13afd8e011c15105c73
|
|
| BLAKE2b-256 |
da51f322c3a07d7abc6dfa62d3421c499e570eef952ec884469f9ddc20e3bdcb
|
Provenance
The following attestation bundles were made for uv_dep_tree-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on p120ph37/uv-dep-tree
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uv_dep_tree-0.1.0-py3-none-any.whl -
Subject digest:
4be57066992853d163b3b6c3525d52596d2049035f2988b3c32d38333186a50f - Sigstore transparency entry: 743938575
- Sigstore integration time:
-
Permalink:
p120ph37/uv-dep-tree@aa0f6e00b63ad4c27c5bd306cf2b3caebb438a68 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/p120ph37
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa0f6e00b63ad4c27c5bd306cf2b3caebb438a68 -
Trigger Event:
release
-
Statement type: