Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uv_dep_tree-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uv_dep_tree-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

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

Hashes for uv_dep_tree-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2fbde5e5a8a2c64fb68c00d7242d24ada85c1dab09b220c9b487eee929f0d5b
MD5 214123d76b7173194eb90fdc72164a8a
BLAKE2b-256 dd962ce41ce5cf4635a0a5d73a3a75eea56ada7ea39600ef3ccc1e6cf7b39358

See more details on using hashes here.

Provenance

The following attestation bundles were made for uv_dep_tree-0.1.0.tar.gz:

Publisher: publish.yml on p120ph37/uv-dep-tree

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for uv_dep_tree-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4be57066992853d163b3b6c3525d52596d2049035f2988b3c32d38333186a50f
MD5 07145cfca093a13afd8e011c15105c73
BLAKE2b-256 da51f322c3a07d7abc6dfa62d3421c499e570eef952ec884469f9ddc20e3bdcb

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page