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 visualization

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

Graph generated from this project

!dismod graph visualization

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.3.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

dismod-0.3.0-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dismod-0.3.0.tar.gz.

File metadata

  • Download URL: dismod-0.3.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for dismod-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5258031c4b0a9df57fc7c8ae16cfac8798aebcdca0a2bb6634944e1c67bd116d
MD5 ce061650db925cd81de15efec92905c9
BLAKE2b-256 444625baa65155cccec1d26a31d1cd09f24d07e7fc8f583f69d55fd756fcb1b0

See more details on using hashes here.

File details

Details for the file dismod-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: dismod-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for dismod-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3d17025fa0d7f1c04b725cc35c24f8b7c97a717fb1cf5a8ae6de1548a6fe4dae
MD5 901d7079d48dd618fc993a3f096e0e90
BLAKE2b-256 c1a86cdc59f5559a4d8cb685322643da70f32ddcce92f522f5ff6483049df9f6

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