A simple sphinx extension to generate UML diagrams with pyreverse
Project description
A simple sphinx extension to generate a UML diagram from python modules.
Install
Install with::
pip install sphinx-pyreverse
Usage
Add “sphinx_pyreverse” to the extensions list in your conf.py (make sure it is in the PYTHONPATH).
Call the directive with path to python module as content. The :classes: and :packages: flags specify which UML diagrams to show.:
.. uml:: {{modulename}} :classes: :packages:
Requires pyreverse from pylint.
Options
To configure usage, in your conf.py
sphinx_pyreverse_output (see –output), default is “png”
sphinx_pyreverse_filter_mode (see –filter_mode), default is None
sphinx_pyreverse_class (see –class), default is None
sphinx_pyreverse_show_ancestors (see –show_ancestors), default is None
sphinx_pyreverse_all_ancestors (see –all_ancestors), default is None
sphinx_pyreverse_show_associated (see –show_associated), default is None
sphinx_pyreverse_all_associated (see –all_associated), default is None
sphinx_pyreverse_show_builtin (see –show_builtin), default is None
sphinx_pyreverse_module_names (see –module_names), default is None
sphinx_pyreverse_only_classnames (see –only_classnames), default is None
sphinx_pyreverse_ignore (see –ignore), default is None
Changing the directive
To override the directive, which defaults to ‘uml’ set the SPHINX_PYREVERSE_DIRECTIVE environment variable to whatever you like.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for sphinx_pyreverse-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71659d8ae0156ee18ee54aa6db6a18e739c431ec451b462a2f1481f113c0739c |
|
MD5 | c51e0f27c4a76d003a43b18a70421597 |
|
BLAKE2b-256 | e382ea37a20e494d4592b823fee967c65c3bab9480ea61c828c15f1be5eb6947 |
Hashes for sphinx_pyreverse-0.0.15-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec6c2794f22142a1802b1da6d3f242681c10beb61af7838d1b96f537d79d0cfc |
|
MD5 | 5918cd7a79214631b0a46def4a9a11f5 |
|
BLAKE2b-256 | bfdb11077eb3038e5e2ee94dc4250f4f0888bd0f1288ed0cd9bd81604a897357 |