<br><div class="gmail_quote">On Mon, Mar 9, 2009 at 10:33 AM, Anand Balachandran Pillai <span dir="ltr"><<a href="mailto:abpillai@gmail.com">abpillai@gmail.com</a>></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 <<a href="mailto:vsapre80@gmail.com">vsapre80@gmail.com</a>> wrote:<br>
</div><div class="im">> Hi,<br>
> Does anyone know of a tool that can produce Python code from UML diagrams?<br>
> Is something of this sort being added to NetBeans?<br>
> Or is it that the ease of programming in Python acts as a deterrent in the<br>
> way of having to create something in UML and then covert that model into<br>
> Python.<br>
> it would be good to have a tool of that sort (Python to UML and UML to<br>
> 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 & 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 "by-the-book" 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>
> Also, is there a way to find Python call graphs (something like Doxygen),<br>
> but not just the typical static code structure...instead something that can<br>
> tell execution paths while a certain function is called.<br>
> I came across 'pycallgraph'. Its good. except two things, its slow for big<br>
> projects, and it goes all the way into tracing every single call...that<br>
> means if I am using a COM library underneath, it traces that as well. What I<br>
> was interested in is figuring out only part of the trace...may be specifying<br>
> exclusions in the trace tree.<br>
<br>
</div>You might also want to look at Stani'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>