From charlesreid1

No edit summary
Line 31: Line 31:


[[Image:packages_SCIPY.png|600px]]
[[Image:packages_SCIPY.png|600px]]
=Customizing Output=
https://gist.github.com/HarshaVardhanBabu/9a47db9e33cf06e9e1e917520bb54056
==Limiting included classes==
use the <code>-c CLASSNAME</code> or <code>--class=CLASSNAME</code> flags to specify which classes to include in the diagram. Only those classes and related classes will be included.


=Flags=
=Flags=

Revision as of 23:06, 3 May 2019

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.

Packages SCIPY.png

Customizing Output

https://gist.github.com/HarshaVardhanBabu/9a47db9e33cf06e9e1e917520bb54056

Limiting included classes

use the -c CLASSNAME or --class=CLASSNAME flags to specify which classes to include in the diagram. Only those classes and related classes will be included.



Flags