Skip to main content

A tool for find dependencies relationships between Python packages

Project description

Gluttony

Build Status

Gluttony is a tool for finding dependencies relationship of a Python package.

Gluttony

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:

Sproxy dependencies diagram

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:

Turbogears2 dependencies diagram

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:

Sproxy dependencies diagram

Another huge example:

Dependency relationship digram of TurboGears2

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.

Author

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

Gluttony-0.8.zip (14.9 kB view details)

Uploaded Source

File details

Details for the file Gluttony-0.8.zip.

File metadata

  • Download URL: Gluttony-0.8.zip
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Gluttony-0.8.zip
Algorithm Hash digest
SHA256 e26046709f359227efd271daae07f5c437c15df2cd3dc2c35245540ae1878ece
MD5 019552846c9252a84d8c7c6e45bf20da
BLAKE2b-256 483827b84e47953dde56455290099c5892d0927df7e1070c59336ca59573b916

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page