Skip to main content

Creates UML diagrams from python source code.

Project description

# pyplantuml

![](docs/pyplantuml_packages.png)

Creates UML diagrams (package and class structure) from Python source code.

Build on top of pylint’s pyreverse to do the static code analysis and supports most of its original commandline interface.

It basically outputs plantuml description as text files instead of .dot files. The plantuml code features a simple syntax and is a great base for manual extension, e.g. to sketch out ideas on how to evolve the data model.

## Installation

From pypi:

$ pip install pyplantuml

From source:

$ python setup.py develop

After installation it is available from the commandline as two commands, see below.

## Dependencies

## Usage

$ cd <parent-dir-of-package>

$ pyplantuml [pyreverse-options] <package>

If a plantuml.jar can be found on PATH, it will automatically be called afterwards to convert the text files to images.

$ pyplantuml-web [pyreverse-options] <package>

Will use the online form on www.plantuml.com for conversion and display the result in your default browser. Do not use for sensitive data!

## Examples

pyplantuml is a great way to visualize the data structure of an existing package. It can be used on custom packages as well as builtins, as some of the examples below illustrate.

### ast ![](docs/ast_classes.png)

### logging ![](docs/logging_classes.png)

### maxjob ![](docs/maxjob_packages.png) ![](docs/maxjob_classes.png)

### pluggy ![](docs/pluggy_classes.png)

### re ![](docs/re_classes.png)

### setuptools ![](docs/setuptools_classes.png)

### SocketServer ![](docs/SocketServer_classes.png)

### tokenize ![](docs/tokenize_classes.png)

### tox ![](docs/tox_classes.png)

### urllib ![](docs/urllib_classes.png)

### webbrowser ![](docs/webbrowser_classes.png)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyplantuml-0.1.51.zip (10.2 kB view details)

Uploaded Source

File details

Details for the file pyplantuml-0.1.51.zip.

File metadata

  • Download URL: pyplantuml-0.1.51.zip
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyplantuml-0.1.51.zip
Algorithm Hash digest
SHA256 f2307cfe6c3c19a461bf540d52cc194ccea7440f774dd6fc3a61e65435baafa7
MD5 7aaf9f16b9a2e68c2d4e36805b07fea5
BLAKE2b-256 fb661b53e89aff28f08732a8add33d048eaa9c85b37d4ba57d9252001657b3fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page