Welcome! Python Call Graph is a Python module that creates call graph visualizations for Python applications.

Click on the images below to see a larger version and the source code that generated them.

The documentation needs some work stiil. Feel free to contribute :)

The latest version is 1.0.1 which was released on 2013-09-17, and is a backwards incompatbile from the previous release.

Quick Start¶

Installation is easy as:

pip install pycallgraph

You can either use the command-line interface for a quick visualization of your Python script, or the pycallgraph module for more fine-grained settings.

The following examples specify graphviz as the outputter, so it’s required to be installed. They will generate a file called pycallgraph.png.

The command-line method of running pycallgraph is:

$ pycallgraph graphviz -- ./mypythonscript.py

A simple use of the API is: