IBM / pyflowgraph

Flow graphs for Python
Apache License 2.0
25 stars 8 forks source link
open-discovery

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 input.py --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.