Skip to content

breandan/pantograph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

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 [email protected]: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

Watchers

Forks

Releases

No releases published

Packages

No packages published