Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically Generated Python Code from an UML diagram? [closed]

Tags:

python

uml

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?

like image 693
Léo Léopold Hertz 준영 Avatar asked Jul 27 '09 21:07

Léo Léopold Hertz 준영


People also ask

Can UML generate code?

You can also generate software code from three UML behavioral modeling paradigms: Interaction (Sequence) diagrams. Activity diagrams.

How do you make a python code diagram?

In the Project tool window, right-click an item for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U ). In the list that opens, select Python Class Diagram. PyCharm generates a UML diagram for classes and their dependencies.

What is UML diagram Python?

00:20 The standard method of creating class diagrams is called UML, Unified Modeling Language. UML is used to show class hierarchies in software projects. 00:34 In other words, it describes the relationships between different classes and it supports composition and inheritance.


2 Answers

Enterprise Architect is able to generate python code code from UML diagrams.
It is also able to also perform some reverse engineering, and therefore maintain the two versions (UML and python) synchronized together.

However, I have never used it in that way, except for some small tests just to see it in action. I personally find productivity in Python so high, that even if I am really satisfied with EA, I prefer it just to document the design.

like image 85
rob Avatar answered Oct 17 '22 19:10

rob


  • PyUML - a Python Roundtrip Tool for Eclipse
  • PyIdea: PyNSource UML & Patterns IDE for Python
like image 22
Brandon E Taylor Avatar answered Oct 17 '22 18:10

Brandon E Taylor