other versions
- wheezy 0.25.1-1
- wheezy-backports 1.3.1-3~bpo70+1
- jessie 1.3.1-3
- jessie-backports 1.5.2-1~bpo8+1
- testing 1.6.5-1
- unstable 1.6.5-1
pyreverse(1) | User's Manual | pyreverse(1) |
NAME¶
pyreverse - parse python sources files and extract diagrams from them.SYNOPSIS¶
pyreverse [options] <modules>DESCRIPTION¶
pyreverse is a python source analyzer. It parses a python packages and produces UML diagrams in different output formats. (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 ).- a diagram 'classes_<name>' for the classes in <modules> and
( if there is more than one module in <projects> )
- a diagram 'packages_<name>' for the package dependencies in <modules>
OPTIONS¶
- -h, --help
- show help message and exit
- -p<name>, --project=<name>
- set project name to <name> if not using -c option. (default:'No Name')
- -i<file>, --ignore=<file>
- add <file> (may be a directory) to the black list (not parsed)
- -f<mode>, --filter-mode=<mode>
- filter attributes and functions according to <mode>.
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
- 'OTHER' : filter protected and private attributes [currentt: PUB_ONLY]
- -d<file>, --diadefs=<file>
- create diagram according to the diagrams definitions in <file>
- -c <class>, --class=<class>
- create a class diagram with all classes related to
<class> [current: none] the class must be in the file
<modules>. By default, this will include all ancestors and
associated classes of <class> and include module names (i.e. '-ASmy'
).
- -a <ancestor>, --show-ancestors=<ancestor>
- show <ancestor> generations of ancestor classes not in <projects>
- -A, --all-ancestors=[yn]
- show all ancestors off all classes in <projects> [current: none]
- -s <ass_level>, --show-associated=<associated>
- show <ass_level> associated classes. <ass_level>=1 will only take classes directly related to the classes in the project, while <ass_level>=2 will also take all classes related to those fetched by<depth>=1.
- -S, --all-associated=[yn]
- 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 <format>, --output=<format>
- create a *.<format> output file if format available.
Available formats are all formats that dot can produce and vcg.
[default: dot]
EXAMPLES¶
Here are some examples for command line options :
- pyreverse <project> -a1 -s1 -m
-
- pyreverse mod/foo.py mod/fee.py -k
-
REQUIRES¶
PythonSEE ALSO¶
dot(1), pylint(1)AUTHORS¶
Sylvain Thenault, Emile AnclinAugust 18, 2008 | pyreverse |