Skip to main content

report size of python package with its deps using uv

Project description

uv-packsize

PyPI Changelog Tests License

report size of python package with its deps using uv

Installation

Install this tool using pip:

pip install uv-packsize

or using uv:

uv tool install uv-packsize

Usage

For help, run:

uv-packsize --help
Usage: uv-packsize [OPTIONS] [PACKAGE_NAMES]...

  Report the size of a Python package and its dependencies using uv.

Options:
  --version          Show the version and exit.
  --bin              Include the size of binaries in the .venv/bin directory.
  -p, --python TEXT  Specify the Python version for the virtual environment.
  --help             Show this message and exit.

You can also use:

python -m uv_packsize --help

Example

uv-packsize apache-airflow==3.0.0

Multiple Packages

You can also specify multiple packages to calculate the total size of all of them combined.

uv-packsize 'iniconfig==2.0.0' six
Calculating size for iniconfig==2.0.0, six...
Creating virtual environment...
Installing iniconfig==2.0.0, six and its dependencies...
Analyzing sizes...

--- Package Sizes ---
Package                  Size
-------------------  --------
iniconfig            12.88 KB
six                   3.36 KB
-------------------  --------
Total Package Size   16.24 KB

Total size:          16.24 KB

Calculation complete.

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment using uv:

make sync

To run the tests:

make test

To run all formatting and linting, type check:

make check

this also runs cog on README.md and updates the help message inside it.

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_packsize-0.1.1.tar.gz (9.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_packsize-0.1.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file uv_packsize-0.1.1.tar.gz.

File metadata

  • Download URL: uv_packsize-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uv_packsize-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a24b1adc629560ea17d73648b557311147c79e9fd266de72efb45a2673035c84
MD5 ad22e270e88380d46ffc892da74191c7
BLAKE2b-256 8ffc60b9912f40ceeb0138e2f0720c78ce6d4a24615dc46c14c04651cdcf5e1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for uv_packsize-0.1.1.tar.gz:

Publisher: publish.yml on kj-9/uv-packsize

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_packsize-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: uv_packsize-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uv_packsize-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29b85f9be2af3435c5e29d22e72d0af39bfb425621bf5c18f71ac02f29894247
MD5 afcbe0dd2711997288c0a85b83719ce4
BLAKE2b-256 08eb6b59668a2636f943c7e0af05ec847c320709996f69cc83903a35f6285503

See more details on using hashes here.

Provenance

The following attestation bundles were made for uv_packsize-0.1.1-py3-none-any.whl:

Publisher: publish.yml on kj-9/uv-packsize

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