Skip to content

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

Notifications You must be signed in to change notification settings

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 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

Watchers

Forks

Releases

No releases published

Packages

No packages published