Is there a tool for generating flowcharts of python functions calling each other in a codebase? Feels like this should exist but searches are wrecked by python tools for generating flowcharts about other stuff
Conversation
Replying to
Winner
1
9
Okay actually I don’t think this does things on the function level. Still open to more suggestions.
3
5
Replying to
may be able to. Haven’t looked too much into the product but it’s advertised as generating system diagrams from code.
2
1
11
That looks dope
1
2
Show replies
This Tweet is from an account that no longer exists. Learn more
yeah this is what i use. unfortunately it can't look deeper into imported libraries though
2
Replying to
the dynamic nature of python makes this rather tricky to do properly. it might make the most sense to use some of the profiling support and run the program, and postprocess it into a graph of what functions got called
2
3
i haven't used it but the "profile" stdlib module is a pure-python profiler that's apparently very slow but extensible. might not be too hard to collect callstacks and process them into, say, graphviz output







