
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Python Call Graph is a library and command line tool that visualises the flow of your Python application. See http://pycallgraph.slowchop.com/ for more information.
Python Call Graph #################
Welcome! Python Call Graph is a Python <http://www.python.org>
_ module that creates call graph <http://en.wikipedia.org/wiki/Call_graph>
_ visualizations for Python applications.
.. image:: https://travis-ci.org/gak/pycallgraph.png :target: https://travis-ci.org/gak/pycallgraph .. image:: https://coveralls.io/repos/gak/pycallgraph/badge.png?branch=develop :target: https://coveralls.io/r/gak/pycallgraph?branch=develop .. image:: https://pypip.in/v/pycallgraph/badge.png :target: https://crate.io/packages/pycallgraph/ .. image:: https://pypip.in/d/pycallgraph/badge.png :target: https://crate.io/packages/pycallgraph/
Click on the images below to see a larger version and the source code that generated them.
.. image:: http://pycallgraph.slowchop.com/en/develop/_images/basic_thumb.png :target: http://pycallgraph.slowchop.com/en/develop/examples/basic.html .. image:: http://pycallgraph.slowchop.com/en/develop/_images/regexp_grouped_thumb.png :target: http://pycallgraph.slowchop.com/en/develop/examples/regexp_grouped.html .. image:: http://pycallgraph.slowchop.com/en/develop/_images/regexp_ungrouped_thumb.png :target: http://pycallgraph.slowchop.com/en/develop/examples/regexp_ungrouped.html
The latest version is 1.0.1 which was released on 2013-09-17, and is a backwards incompatbile from the previous release.
The project lives on GitHub <https://github.com/gak/pycallgraph/#python-call-graph>
, where you can report issues <https://github.com/gak/pycallgraph/issues>
, contribute to the project by forking the project <https://help.github.com/articles/fork-a-repo>
_ then creating a pull request <https://help.github.com/articles/using-pull-requests>
, or just browse the source code <https://github.com/gak/pycallgraph/>
.
The documentation needs some work stiil. Feel free to contribute :)
Installation is easy as::
pip install pycallgraph
You can either use the command-line interface <http://pycallgraph.slowchop.com/en/develop/guide/command_line_usage.html>
_ for a quick visualization of your Python script, or the pycallgraph module <http://pycallgraph.slowchop.com/en/develop/api/pycallgraph.html>
_ 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::
from pycallgraph import PyCallGraph
from pycallgraph.output import GraphvizOutput
with PyCallGraph(output=GraphvizOutput()):
code_to_profile()
Feel free to browse the documentation of pycallgraph <http://pycallgraph.slowchop.com/en/master/>
_ for the usage guide <http://pycallgraph.slowchop.com/en/master/guide/index.html>
_ and API reference <http://pycallgraph.slowchop.com/en/master/api/api.html>
_.
FAQs
Python Call Graph is a library and command line tool that visualises the flow of your Python application. See http://pycallgraph.slowchop.com/ for more information.
We found that pycallgraph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.