Skip to main content

sphinx-uml

PyPI Build Documentation ReadTheDocs

Overview

sphinx-uml is a python package that provides:

  • A Sphinx extension, called using .. uml, which generates UML diagrams from python modules, just like sphinx-pyreverse.
  • The pyreverse2 command, that extends pyreverse provided by pylint.

Compared to sphinx-pyreverse, sphinx-uml outputs enriched dot or SVG UML diagrams.

  • responsive to light/black Sphinx themes (as pydata);
  • if the HTML address is known, the class/attribute/method names can be clicked to browse the corresponding documentation page.

Features

.. uml directive

UML diagrams can be obtained by using the .. uml directive.

Example:

.. uml:: example.module.b1
    :caption: UML diagram of ``example.module.b1``
    :classes:
    :packages:

This toy example shows how to use the .. uml directive in a Sphinx documentation using sphinx.ext.autodoc and sphinx.ext.autosummary.

pyreverse2

The pyreverse2 behaves like the original pyreverse command with two main differences:

  • --ouput: svg and dot are the only supported output formats;
  • --sphinx-html-dir can be used to indicate where is the HTML root directory.

Example: In the example below, we assume that:

  • the example package has been installed
  • the documentation has been built in $HOME/git/sphinx-pyreverse/example/docs/_build/html/
# Generate the UML diagram for each value of x
for x in example example.module example.module.submodule example.module.submodule.c1
do
   pyreverse2 \
      --sphinx-html-dir $HOME/git/sphinx-uml/example/docs/_build/html/ \
      --output svg \
      --project $x \
      $x
   # The previous command outputs {classes,packages}_$o.svg
done

Documentation

Metadata

Release files for sphinx-uml 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-uml 0.4.0
File Size Uploaded Provenance
sphinx_uml-0.4.0.tar.gz 12.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-uml 0.4.0
File Interpreter ABI Platform
sphinx_uml-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / sphinx_uml-0.4.0.tar.gz

Download URL sphinx_uml-0.4.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bea0371cc315193a13a3018656eee0c365272e5bda59d7503ae6cbc2bb953bdd
BLAKE2b-256 checksum
How to use checksums
8ff0641ab5811a6fcdc677b8dcb70a82b45c40240b6d4572b237130c094be0a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2025.

Transparency log

Release files / sphinx_uml-0.4.0-py3-none-any.whl

Download URL sphinx_uml-0.4.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
372bfbc189a5b58a7e10de5575242232891e7544e265300374312422f47ed409
BLAKE2b-256 checksum
How to use checksums
8548bdf04587173285b4a23e789e067016871656ae23b64a108eebd001a7a18d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2025.

Transparency log

Security for sphinx-uml 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sphinx_uml-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page