[BangPypers] UML <=> Python...and other things...

Anand Balachandran Pillai abpillai at gmail.com
Mon Mar 9 06:03:05 CET 2009


On Sun, Mar 8, 2009 at 3:25 AM, Vishal <vsapre80 at gmail.com> wrote:
> Hi,
> Does anyone know of a tool that can produce Python code from UML diagrams?
> Is something of this sort being added to NetBeans?
> Or is it that the ease of programming in Python acts as a deterrent in the
> way of having to create something in UML and then covert that model into
> Python.
> it would be good to have a tool of that sort (Python to UML and UML to
> Python)?

For Python to UML try PyUMLGraph.  It does the reverse engineering for you, i.e
produces UML diagrams (remember, not call graphs but UML diagrams
with relationships among classes/modules etc) by inspecting live
Python objects.

http://pypi.python.org/pypi/PyUMLGraph

I am not sure if the latter makes sense, since Python is
meant for quick programming & development. How much
does UML-code and UML-design help in Python projects ?
I am not sure. I think it might even slow down the Python
development cycle.

> Also, is there a way to find Python call graphs (something like Doxygen),
> but not just the typical static code structure...instead something that can
> tell execution paths while a certain function is called.
> I came across 'pycallgraph'. Its good. except two things, its slow for big
> projects, and it goes all the way into tracing every single call...that
> means if I am using a COM library underneath, it traces that as well. What I
> was interested in is figuring out only part of the trace...may be specifying
> exclusions in the trace tree.

You might also want to look at Stani's Python Editor (SPE) which
produces UML diagrams directly from Python code without needing
any other tool or plugin.


> Thanks and best regards,
> Vishal Sapre
>
>
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
>



-- 
-Anand


More information about the BangPypers mailing list