Automatically generate class hierarchy

Sylvain Thénault syt at logilab.fr
Wed Aug 28 17:30:35 CEST 2002


sebastien hugues <sebastien.hugues at swissinfo.org> writes:

> Hello,
> 
> i tried to find a tool to automatically generate the class hierarchy
> of my program, but i found nothing. I just find a wrapper written
> in python to use doxygen, but it doesn't work well. I'd like my
> class hierarchy in UML style, it means with attributes and methods.
> Doxygen gives me only the hierarchy.
> I tested happydoc too, but i didn't figure out any graphical skill...

happydoc has a --dia option which make it generate UML diagram
readable by Gnome dia [1].

Another tool able to generate UML diagram from python source code is
pyreverse [2], which generate diagram for argouml [3] and sooner for
vcg [4]. 

Note that the current pyreverse version has a little bug in the
pyargo.py file (you should put the "import sys" statement on the top
fo the file instead of its current location). A new release of
pyreverse fixing this bug and providing vcg diagram generation will be
available in a few days.

[1] http://www.lysator.liu.se/~alla/dia/dia.html
[2] http://www.logilab.org/pyreverse
[3] http://argouml.tigris.org
[4] http://rw4.cs.uni-sb.de/~sander/html/gsvcg1.html

-- 
Sylvain Thénault

  LOGILAB           http://www.logilab.org



More information about the Python-list mailing list