Skip to main content

Analyze and make graphs from Python code.

Project description

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:

pcg-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

MIT license. See LICENSE for full text.

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

pycodegraph-0.1.tar.gz (6.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pycodegraph-0.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for pycodegraph-0.1.tar.gz
Algorithm Hash digest
SHA256 5d7db854dd9a3a8ce49b18fccfdb427525fc2b824ebe305166a6e5c0e9f5d1d6
MD5 f70050dba00651769b48cdeee8d91ebe
BLAKE2b-256 423b7fd76b65d2afad3b0cc923a085e387d4b069fbba4276042086d49bbd73df

See more details on using hashes here.

Supported by

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