I'm working on a big python script that is getting more and more complex. I would like to generate a diagram (flow-chart?) of my code to have a better understanding of all the conditions and loops that are involved, even if the diagram doesn't understand the functions. That way, I could also check that the logic is OK.
Here is an example to illustrate : Let say I have this simple python script
a = 33
b = 200
name = "martin"
print("Starting script")
if b > a:
print("b is greater than a")
if name == "martin":
print("The name is martin")
else:
print("The name is not martin")
I could run a command in terminal like diagram generate myScript.py
and it would output something like this :
Is there any package that could help me with that ?