Alex Rivera | Logout

Automatically Generated Python Code from an UML diagram?

Asked 2009-07-27T21:53:05.017
19

The question is not the same as What’s the best way to generate a UML diagram from Python source code?, but the other way around.

Topcoder UML tool automatically generates code in only Java or C#. Since I need to create a very depended data structure at a point, I am hesitant to turn to Java. I want to use Python. So:

  1. Is there an UML-like tool that automatically generates Python code from your diagram?

  2. If there is, is it possible to generate it from the Topcoder UML tool?

  3. Can you shortly compare the tools?

Edit
Report

1 Answer

0

Search with Ubuntu found:

$ apt-cache search python uml
boa-constructor - RAD tool for Python and WxWindows application
dia2code - a dia-UML code generator
spe - Stani's Python Editor

Quick testing revealed that DIA is the only program, where you can export your UML diagram to Python. I am very suspicious about the quality of DIA because it is less intuitive to use than the Topcoder UML program. Perhaps, the other programs, suggested by other repliers, are better.

answered 2009-07-28T03:18:14.833

Your Answer