I have got a project with a bunch of modules, and I was looking to create a hierarchy diagram automatically. Is there any way to do this? I created UML diagrams with pyreverse, but could not generate Function Hierarchy Diagrams.
Asked
Active
Viewed 109 times
1
-
Could you give an example of a "Function Hierarchy Diagram"? – AKX Mar 09 '23 at 13:59
-
@AKX I have updated, sorry for being vague – Ognjen Ognjanovic Mar 09 '23 at 14:04
-
1If you're looking for a library to do this, that is off topic here. If you think an existing library should be able to handle it (i.e., you're trying to figure out how to use the library, or adapt some existing code) then we will need a lot more specifics in order to have a properly answerable question. Please read [ask] and [mre]. – Karl Knechtel Mar 09 '23 at 14:05
-
If there's no library to do that yet, you could (try to) write your own with the `ast` or `libcst` modules. – AKX Mar 09 '23 at 14:11
-
would a callgraph suit your needs? if so, try pyan https://stackoverflow.com/questions/13963321/build-a-call-graph-in-python-including-modules-and-functions – lofidevops Mar 09 '23 at 14:15