Skip to main content

pycodegraph - Python code graphing tool

A tool/framework for analysing and graphing Python code.

Currently only supports graphing of imports, but hopefully more to come.

Installing

Install via pip (preferably into your project's virtualenv):

pip install pycodegraph

Usage

Create a dot graph of your code and render it using dot:

pycodegraph imports --depth=1 ./my_code | dot -Tsvg > mygraph.svg

Usually you'll want to adjust the depth depending on project size and/or number of submodules.

There is also --include and --exclude for more fine grained control over what gets included in the graph.

License

The contents of this repository are released under the GPL v3 license. See the LICENSE file included for more information.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycodegraph-0.1.3.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file pycodegraph-0.1.3.tar.gz.

File metadata

  • Download URL: pycodegraph-0.1.3.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for pycodegraph-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e4cb1953cb81566c9e396ae1e66bf24951d950415af5e42305f6685626917686
MD5 d966918ff427811177a41147338c44fd
BLAKE2b-256 db3f0425d1942239261da3584569c5b6e665661f155923006943a071dc497e2e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page