Skip to main content

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

Project description

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

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

python_package_size-1.0.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

python_package_size-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file python_package_size-1.0.1.tar.gz.

File metadata

  • Download URL: python_package_size-1.0.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for python_package_size-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bc4c645ad4e0ac4f86de086cd61166968af3a44ab73ef748b0a3c28d7423097b
MD5 95efb43f46bd80b69f23434121e44ee7
BLAKE2b-256 ac4d5b6b0875a0b363b33f5b6befc227b2464906b8cba1f56eb574d75cfb4af1

See more details on using hashes here.

File details

Details for the file python_package_size-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_package_size-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33cd61f6bad52866d9c5d9576374843b2054372d1720e512cff70550785cd005
MD5 096152a9ca85817a385613d678b6d288
BLAKE2b-256 482d1d1f6be64d25991cd28f04932c29dba5117f3ccbb61ba1002d4be933c00c

See more details on using hashes here.

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