Generate UML from Python source [duplicate]
I have a Python program and I would like to generate an UML diagram from from. Which programs can do that?
edit: I would like to have an option of editing the generated diagram
I'm not sure what kind of quality you want your diagrams to be, but there is a tool called PyNSource that is still maintained (last update August) and does what you are after. You can find it here. I should clarify that this program is for Windows.
Here you can find a list of UML-Python tools. If you need to edit the diagram, then probably you should start by taking a look at PyUML
And there's Stani's Python Editor (SPE) which draws simple UML diagrams on-the-fly.
My tool Pynsource will reverse engineer Python 3 / Python 2 source code into UML class diagrams. You can drag to re-arrange the classes on the screen or let the auto-layout do it.
You can edit/add/delete classes and associations - yellow comment notes are supported. It can even generate ASCII UML to paste into your code.
There's an open source community edition, as well as a pro version if you want zoom functionality.
精彩评论