pyreverse 1 User Commands PYREVERSE(1) NAME pyreverse - parse python sources files and extract diagrams from them. SYNOPSIS pyreverse [options] DESCRIPTION pyreverse is a python source analyzer. It parses a python packages and produces UML diagrams in different output for- mats. (dot, all formats available for dot, and vcg). With different options, you can have fine tuning on what and how modules, classes and attributes will be shown in the diagram. You can combine several modules in one project (except with -c ). If no -c and no --diadefs option specified, pyreverse will create - a diagram 'classes_' for the classes in and ( if there is more than one module in ) - a diagram 'packages_' for the package dependencies in With -c , pyreverse creates a diagram for that with filename .. You can do -c , -c . OPTIONS -h, --help show this help message and exit -p, --project= set project name to if not using -c option. (default:'No Name') -i, --ignore= add (may be a directory) to the black list (not parsed) -f, --filter-mode= filter attributes and functions according to . You can combine modes using '+' like 'SPECIAL+OTHER'. Correct modes are : - 'PUB_ONLY' : filter all non public attributes (default) - 'ALL' : no filter - 'SPECIAL' : filter Python special functions except constructor pyreverse Last change: August 18, 2008 1 User Commands PYREVERSE(1) - 'OTHER' : filter protected and private attributes [currentt: PUB_ONLY] -d, --diadefs= create diagram according to the diagrams definitions in -c , --class= create a class diagram with all classes related to [current: none] the class must be in the file . By default, this will include all ancestors and associated classes of and include module names (i.e. '-ASmy' ). -a show generations of ancestor classes not in -A, show all ancestors off all classes in [current: none] -s show associated classes. =1 will only take classes directly related to the classes in the project, while =2 will also take all classes related to those fecthed by=1. -S, show recursively all associated off all associated classes [current: none] -b, --builtin include builtin objects in representation of classes [current: False] -m [yn], --module-names=[yn] include module name in representation of classes. This will include full module path in the class name. [current: none] -k, --only-classnames don't show attributes and methods in the class boxes; this disables -f values [current: False] -o , --output= create a *. output file if format available. Available formats are all formats that dot can produce and vcg. [default: dot] pyreverse Last change: August 18, 2008 2 User Commands PYREVERSE(1) EXAMPLES Here are some examples for command line options : pyreverse -a1 -s1 -m -a1 -s1 will include one level of ancestor and associ- ated classes in the diagram of the modules, while -m will show the full module path of each class. You can use the same way the -a, -s, -A, -S options. Note that on class diagrams (using -c ) -a and -s will rather reduce than enlarge your diagram. pyreverse mod/foo.py mod/fee.py -k This is interesting if the diagram for =mod is too complicated: you can show only the class names (no attributes or methods, option -k); or take only the modules you are interested in (here fee.py and foo.py). REQUIRES Python SEE ALSO dot(1), pylint(1) ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ___________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |___________________________________________ | Availability | SUNWpylint | |___________________________________________ | Interface Stability| Uncommitted | |____________________|_____________________| AUTHORS Sylvain Thenault, Emile Anclin This manpage was written by Emile Anclin NOTES Source for pylint is available online at http://opensolaris.org. pyreverse Last change: August 18, 2008 3