Skip to content


Folders and files

Last commit message
Last commit date

Latest commit


Repository files navigation

Flow graphs for Python

Build Status Python 2.7 Python 3.6 Python 3.7 DOI

Record dataflow graphs of Python programs using dynamic program analysis.

The package can be used standalone but is designed primarily to be used in conjunction with our semantic flow graphs. The main use case is analyzing short scripts in data science and scientific computing. This package is not appropriate for analyzing large-scale industrial software.

This is alpha software. Contributions are welcome!

Command-line interface

The package ships with a minimal CLI, invokable as python -m flowgraph. You can use the CLI to run and record a Python script as a raw flow graph.

python -m flowgraph --out output.graphml

For a more comprehensive CLI, with support for recording, semantic enrichment, and visualization of flow graphs, see the Julia package for semantic flow graphs.