开发者

Generate UML from Python source [duplicate]

This question already has answers here: What's the best way to generate a UML diagram from Python source code? [closed] (9 answers) Closed 8 years ago. 开发者_StackOverflow中文版

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜