Skip to content

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pantograph

Pantograph is a framework for dynamic analysis of a Python interpreter. It allows users to reconstruct source code and program dependence graph from Jupyter notebooks, Python shell, and Python scripts.

Setup

To install Pantograph, run the following command (Python 3.5+ recommended):

git clone git@github.com:breandan/pantograph.git && cd pantograph && pip install .

Usage

Arbitrary dataflow can be recovered by passing variables to Pantograph like so:

z = 'Hello '
y = ' Pantograph '
a = z + y + '!'
p = PGraph(a, z, y)

For more details, check out the Jupyter notebook.

PDG visualization is made possible by pydot.

References

About

πŸ“ Introspection and reconstruction of Python dataflow with metaprogramming.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages