๐Ÿ“ฆ anlutro / pycodegraph

๐Ÿ“„ README.md ยท 26 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26# 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](https://opensource.org/licenses/GPL-3.0). See the [LICENSE](LICENSE) file included for more information.