lorenzo bolla’s blog

py2dot

py2dot.py -r1 -i -f examples/classes/complicated.py | fdp -Tpng -o complicated.png

py2dot.py -r1 -i -f examples/classes/complicated.py | fdp -Tpng -o complicated.png

py2dot is a python script to generate a dot file from a python script.

the above picture is a typical py2dot output, from one of the example files available in the distribution. functions are represented by ellipsis, arrows represent function calls, classes are in dashed boxes and imported files in gray boxes.

the output dot file can be viewed with a program liken graphviz.

py2dot is available from pypi.

documentation is available here.

1 Comment »

  1. [...] more information are available here. [...]

    Pingback by py2dot « lorenzo bolla’s blog — October 5, 2008 @ 2:17 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.