<br><div class="gmail_quote">On Mon, Mar 9, 2009 at 10:33 AM, Anand Balachandran Pillai <span dir="ltr">&lt;<a href="mailto:abpillai@gmail.com">abpillai@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Mar 8, 2009 at 3:25 AM, Vishal &lt;<a href="mailto:vsapre80@gmail.com">vsapre80@gmail.com</a>&gt; wrote:<br>
</div><div class="im">&gt; Hi,<br>
&gt; Does anyone know of a tool that can produce Python code from UML diagrams?<br>
&gt; Is something of this sort being added to NetBeans?<br>
&gt; Or is it that the ease of programming in Python acts as a deterrent in the<br>
&gt; way of having to create something in UML and then covert that model into<br>
&gt; Python.<br>
&gt; it would be good to have a tool of that sort (Python to UML and UML to<br>
&gt; Python)?<br>
<br>
</div>For Python to UML try PyUMLGraph.  It does the reverse engineering for you, i.e<br>
produces UML diagrams (remember, not call graphs but UML diagrams<br>
with relationships among classes/modules etc) by inspecting live<br>
Python objects.<br>
<br>
<a href="http://pypi.python.org/pypi/PyUMLGraph" target="_blank">http://pypi.python.org/pypi/PyUMLGraph</a><br></blockquote><div><br></div><div>Is the project is dead and gone! Atleast, the project URL (<a href="http://www.pobox.com/~adamf/software/PyUMLGraph/">http://www.pobox.com/~adamf/software/PyUMLGraph/</a>) seems to be.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I am not sure if the latter makes sense, since Python is<br>
meant for quick programming &amp; development. How much<br>
does UML-code and UML-design help in Python projects ?<br>
I am not sure. I think it might even slow down the Python<br>
development cycle.</blockquote><div><br></div><div>Reverse engineering complex but well-structured/designed Python code, that has stuck to some &quot;by-the-book&quot; OOAD, might make it easier for new enggs taking it up for sustenence / enhancement. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<div class="im"><br>
&gt; Also, is there a way to find Python call graphs (something like Doxygen),<br>
&gt; but not just the typical static code structure...instead something that can<br>
&gt; tell execution paths while a certain function is called.<br>
&gt; I came across &#39;pycallgraph&#39;. Its good. except two things, its slow for big<br>
&gt; projects, and it goes all the way into tracing every single call...that<br>
&gt; means if I am using a COM library underneath, it traces that as well. What I<br>
&gt; was interested in is figuring out only part of the trace...may be specifying<br>
&gt; exclusions in the trace tree.<br>
<br>
</div>You might also want to look at Stani&#39;s Python Editor (SPE) which<br>
produces UML diagrams directly from Python code without needing<br>
any other tool or plugin.<br>
<div class="im"><br></div></blockquote></div><br>-- <br>regards,<br>Banibrata<br><a href="http://www.linkedin.com/in/bdutta">http://www.linkedin.com/in/bdutta</a><br>