Gluttony
Gluttony is a tool for finding dependencies relationship of a Python package.
Installation
To install Gluttony
pip install Gluttony
Usage
To understand the available optons of Gluttony, you can type:
gluttony --help
Drawing Graph
To figure out the dependencies relationship of a Python package, here you can type (the diagram will be displayed by matplotlib, you need to install it before you can use –display-graph option)
gluttony <package name> --display-graph
For example, you would like to know the dependency relationships of Sprox, then you can type:
gluttony sprox --display-graph
The result might looks like this:
Another example example: you want to understand the dependencies relationship of TurboGears2, here we type
gluttony -i http://www.turbogears.org/2.0/downloads/current/index tg.devtools --display-graph
The result:
Oops, the graph is a little bit messy. Currently, the layout of graph is not handled properly. However, it’s not a big deal, you can output the graph as dot or JSON format file for further processing.
Output Graphviz File
To draw the diagram with Graphviz, you can output that dot format like this
gluttony sprox --pydot sprox.dot
Then you can use Graphviz for drawing beautiful graph. Like this one:
Another huge example:
Output JSON File
If you want to get the raw relationship data in Python, this tool also provides a JSON output format. For example:
gluttony pyramid --json=pyramid.json
Then you can use json.load to load it into Python for further processing.
Gallery
See some beautiful Python package dependencies relationship diagram :)
Metadata
Release files for Gluttony 0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Gluttony-0.8.zip | 14.9 kB | Without provenance | Details for Gluttony-0.8.zip |
Release files / Gluttony-0.8.zip
| Download URL | Gluttony-0.8.zip |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e26046709f359227efd271daae07f5c437c15df2cd3dc2c35245540ae1878ece
|
|
BLAKE2b-256 checksum How to use checksums |
483827b84e47953dde56455290099c5892d0927df7e1070c59336ca59573b916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Gluttony 0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.