Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the complete structure of a program?

I would have a quite simple question, but can't find any suitable automated solution for now.

I have developed an algorithm that performs a lot of stuff (image processing in fact) in Python.

What I want to do now is to optimize it. And for that, I would love to create a graph of my algorithm.

Kind of an UML chart or sequencial chart in fact, in which functions would be displayed with inputs and ouptuts.

My algorithm does not imply complex stuff, and is mainly based on a = f(b) operations (no databases, hardware stuff, server, . . . )

Would you have any hint?

Thanks by advance !

like image 600
jlengrand Avatar asked Nov 04 '22 11:11

jlengrand


1 Answers

UML generation is provided by pyreverse - it's part of pylint package

It generates UML in dot format - or png, etc.

It creates UML diagram, so you can easily see basic structure of your code

I'm not sure if it satisfy all your needs, but it might be helpful

like image 100
Jan Vorcak Avatar answered Nov 15 '22 13:11

Jan Vorcak