Skip to main content

sphinx-plantuml

sphinx-plantuml Documentation Status pytest mypy flake8 pytest

introduction

sphinx-plantuml can render PlantUML figure in your Sphinx document without any dependencies in an instant

installation

you can install sphinx-plantuml by pip.

python3 -m pip install sphinx-plantuml

setup

please add sphinxcontrib.plantuml into your conf.py file.

extensions = [
    'sphinxcontrib.plantuml',
]

usage

you can use the following code to insert a figure into your document.

.. plantuml::

    @startuml
    Alice -> Bob: test
    @enduml

sphinx-plantuml renders the figure in .svg format, if you want .png format, you can use :format: argument.

.. plantuml::
    :format: png

    @startuml
    Alice -> Bob: test
    @enduml

if you want add a caption, you can use :caption: argument.

.. plantuml::
    :caption: this is caption

    @startuml
    Alice -> Bob: test
    @enduml

sphinx-plantuml directive can load PlantUML code from file.

.. plantuml:: /the/path/of/file.uml
    :caption: this is caption

sphinx-plantuml directive supports almost all arguments of sphinx builtin figure directive. for example, you can use :align: argument to control the layout of the figure.

.. plantuml:: /the/path/of/file.uml
    :caption: this is caption
    :align: center

Metadata

Release files for sphinx-plantuml 1.0.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-plantuml 1.0.0
File Size Uploaded Provenance Actions
sphinx-plantuml-1.0.0.tar.gz 3.8 kB Without provenance Details for sphinx-plantuml-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-plantuml 1.0.0
File Interpreter ABI Platform Actions
sphinx_plantuml-1.0.0-py3-none-any.whl Python 3 none any Details for sphinx_plantuml-1.0.0-py3-none-any.whl

Total release size: 8.9 kB

Release files / sphinx-plantuml-1.0.0.tar.gz

Download URL sphinx-plantuml-1.0.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e17238b3c0d49c2741ba0c47ac61d2949d5e760b49126a62db40b762908f13c8
BLAKE2b-256 checksum
How to use checksums
0d5563da6497a7a9c7cae267cd9e53e1a6b1e6049a0d58b5041ee0fe3a693222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/5.0.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

Release files / sphinx_plantuml-1.0.0-py3-none-any.whl

Download URL sphinx_plantuml-1.0.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e803a567d4f069f40b0c1bade2c3fb0d669b7c8226c9ae0f77d5b9fa336634ee
BLAKE2b-256 checksum
How to use checksums
dd9c53807726939886a18de46df3092241e475820b51c02777010b64e9c3a81e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/5.0.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

Security for sphinx-plantuml 1.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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