Practical Python Call Graphs
PyCG generates call graphs for Python code using static analysis.
It efficiently supports * Higher order functions * Twisted class inheritance schemes * Automatic discovery of imported modules for further analysis * Nested definitions
You can read the full methodology as well as a complete evaluation on the ICSE 2021 paper.
You can cite PyCG as follows. Vitalis Salis, Thodoris Sotiropoulos, Panos Louridas, Diomidis Spinellis and Dimitris Mitropoulos. PyCG: Practical Call Graph Generation in Python. In 43rd International Conference on Software Engineering, ICSE '21, 25–28 May 2021.