Skip to main content

Recursive Package Size

Learn after-install weight of any Python package including its dependencies.

The tool will loop over your project dependencies, install each dependency in its own venv and report the actual size including dependency tree.

This is useful for optimizing dependencies of your large applications, libraries or containers.

This is especially useful in machine learning context, where dependencies easily explode into gigabates.

Installation

pip install python-package-size

Usage

python-package-size -r pyproject.toml

or

python-package-size -r requirements.txt

Example output

        mypy:   43.7 MB
      awscli:   34.0 MB
       black:    6.7 MB
      pylint:    6.5 MB
      pytest:    2.5 MB

Metadata

Release files for python-package-size 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-package-size 1.0.1
File Size Uploaded
python_package_size-1.0.1.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-package-size 1.0.1
File Interpreter ABI Platform
python_package_size-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / python_package_size-1.0.1.tar.gz

Download URL python_package_size-1.0.1.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bc4c645ad4e0ac4f86de086cd61166968af3a44ab73ef748b0a3c28d7423097b
BLAKE2b-256 checksum
How to use checksums
ac4d5b6b0875a0b363b33f5b6befc227b2464906b8cba1f56eb574d75cfb4af1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release files / python_package_size-1.0.1-py3-none-any.whl

Download URL python_package_size-1.0.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33cd61f6bad52866d9c5d9576374843b2054372d1720e512cff70550785cd005
BLAKE2b-256 checksum
How to use checksums
482d1d1f6be64d25991cd28f04932c29dba5117f3ccbb61ba1002d4be933c00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page