Skip to main content

Display dependency tree of Python distribution

Project description

Build Status Coverage Status PyPI

Johnnydep

Pretty-print a dependency tree for a Python distribution. A simple example:

$ johnnydep requests
 name                           summary
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 requests                       Python HTTP for Humans.
 ├── certifi>=2023.5.7          Python package for providing Mozilla's CA Bundle.
 ├── charset_normalizer<4,>=2   The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
 ├── idna<4,>=2.5               Internationalized Domain Names in Applications (IDNA)
 └── urllib3<3,>=1.26           HTTP library with thread-safe connection pooling, file post, and more.

A more complex tree:

$ johnnydep boto3
 name                                      summary
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 boto3                                     The AWS SDK for Python
 ├── botocore<1.44.0,>=1.43.12             Low-level, data-driven core of boto 3.
 │   ├── jmespath<2.0.0,>=0.7.1            JSON Matching Expressions
 │   ├── python-dateutil<3.0.0,>=2.1       Extensions to the standard Python datetime module
 │   │   └── six>=1.5                      Python 2 and 3 compatibility utilities
 │   └── urllib3!=2.2.0,<3,>=1.25.4        HTTP library with thread-safe connection pooling, file post, and more.
 ├── jmespath<2.0.0,>=0.7.1                JSON Matching Expressions
 └── s3transfer<0.18.0,>=0.17.0            An Amazon S3 Transfer Manager
     └── botocore<2.0a.0,>=1.37.4          Low-level, data-driven core of boto 3.
         ├── jmespath<2.0.0,>=0.7.1        JSON Matching Expressions
         ├── python-dateutil<3.0.0,>=2.1   Extensions to the standard Python datetime module
         │   └── six>=1.5                  Python 2 and 3 compatibility utilities
         └── urllib3!=2.2.0,<3,>=1.25.4    HTTP library with thread-safe connection pooling, file post, and more.

Johnnydep can also attempt to resolve the dependency tree:

$ johnnydep ipython --output-format pinned
ipython==9.13.0
decorator==5.3.1
ipython_pygments_lexers==1.1.1
jedi==0.20.0
matplotlib-inline==0.2.2
pexpect==4.9.0
prompt_toolkit==3.0.52
psutil==7.2.2
Pygments==2.20.0
stack-data==0.6.3
traitlets==5.15.0
parso==0.8.7
ptyprocess==0.7.0
wcwidth==0.7.0
asttokens==3.0.1
executing==2.2.1
pure_eval==0.2.3

Note that pip install lacked a working solver for many years, but pip v20.3 has a new solver (December 2020) which has really improved matters!

Check johnnydep --help for other features and options.

Helpful links

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

johnnydep-2.0.0.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

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

johnnydep-2.0.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file johnnydep-2.0.0.tar.gz.

File metadata

  • Download URL: johnnydep-2.0.0.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for johnnydep-2.0.0.tar.gz
Algorithm Hash digest
SHA256 54454a886e4d62eb8982dbd73508295cfb3611be7bf6a51e3078a2af47f1c496
MD5 3b81131628b307c23a802f1e34b5dbff
BLAKE2b-256 ad8adbd45370aae8fc05bee62f7ec9cf54a68083a200adbce2105870bc928710

See more details on using hashes here.

File details

Details for the file johnnydep-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: johnnydep-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for johnnydep-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5eec6185e6e76ec282298205bfd8b364750b5f938239ecb99a6cffbfa2a01305
MD5 0420f0c20d92f4c5d1df326d7ceb295f
BLAKE2b-256 071545488c82895312b7cfbd392d59c8073b384b45658c5a53c2415eedd8d18a

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