From charlesreid1

Revision as of 09:12, 16 April 2017 by Admin (talk | contribs) (→‎Flags)

Pyreverse is a tool in the Pylint tool suite. Pyreverse is a tool for generating UML diagrams from Python source code.

Examples

Olipy

Here's a UML diagram of the Olipy library. I generated this using the pyreverse utility (part of the Pylint library).

$ pip install pylint
$ cd /path/to/olipy
$ pyreverse -o png -p OLIPY .

This generates the images classes_OLIPY.png and packages_OLIPY.png:

Classes OLIPY.png

Packages OLIPY.png

Scipy

$ pip install pylint
$ git clone git@github.com:scipy/scipy.git
$ cd scipy/
$ pyreverse -o png -p SCIPY .

This will dump out images called classes_SCIPY.png and packages_SCIPY.png.

Flags