Skip to main content

Generate dependency graphs for your modules

Project description

pre-commit.ci status Coverage codecov Total alerts Language grade: Python Code Scanning - Action

dismod

This tool aims to generate a dependency graph of the imports in your python modules. It automatically search for every file with an extesion of .py and quickly generate renderings of that file with all imports (used and unused).

Usage

To use dismod, first you need to install it using pip

pip install dismod

After installed (can be insid a virtualenv or not), go to the project you want to generate the graphs and run:

dismod <path_of_project>

For example, let's use dismod own repository to generate some graphs:

git clone git@github.com:r0x0d/dismod
cd dismod
dismod dismod
ls renders

Generate graphviz visualizatio

If you want to generate a graphviz from the dotfiles, you can do so by using the following command:

dot -T png renders/<file-you-want>.py.dot -o output.png

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

dismod-0.2.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

dismod-0.2.0-py2.py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 2 Python 3

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