<p>I just found this open source project focused on dataflow analysis for Python. Check it out!
<a href="https://github.com/SMAT-Lab/Scalpel/" rel="nofollow noreferrer">https://github.com/SMAT-Lab/Scalpel/</a></p>
<p>It's made in Python too; haven't used it, but looks very interesting!</p>
<p>This is the pre-print of their paper:
<a href="https://arxiv.org/pdf/2202.11840.pdf" rel="nofollow noreferrer">https://arxiv.org/pdf/2202.11840.pdf</a></p>
Static dataflow graph generator for Python?
<p>I've been struggling for quite some time to find a static dataflow graph generator for Python.</p>

<p>This is my ideal: 
Given a small python script <code>example.py</code>, (written in Python3), return some representation of the data flow graph. </p>

<p>I was able to achieve this result using IBM's pyflowgraph, <a href="https://github.com/IBM/pyflowgraph" rel="nofollow noreferrer">https://github.com/IBM/pyflowgraph</a> which outputs data in <code>graph.ml</code> format, unfortunately this package only performs dynamic analysis.  </p>

<p>I'm wondering if anyone knows of a DFG tool that could do this type of static dataflow analysis for Python?</p>