This project has been archived by its maintainers, and is no longer receiving any updates.
modwire-mermaid
modwire-mermaid generates deterministic Mermaid source from typed Python diagram models. It supports the Mermaid syntax families registered by the package and validates each diagram before rendering its text.
The package produces Mermaid text only. Render it with Mermaid in a browser, Markdown viewer, or your own CLI workflow.
Installation
Python 3.12 or later is required.
pip install modwire-mermaid
Quick start
from modwire_mermaid.application import Application
application = Application.create()
source = application.rendered_diagrams()["flowchart"]
print(source)
Application.available_diagrams() returns the supported diagram catalog. Application.diagram_info(diagram_id) returns the typed diagram API for an individual syntax.
Development
The repository uses a single host-mode CI target:
make ci
It installs the development dependencies, runs linting, type checks, tests, compatibility validation, Mermaid CLI rendering, and wheel validation. To open the locally generated diagram preview, run:
make diagrams-test
Release
Releases are versioned by annotated vX.Y.Z tags. After make ci passes, create and push the tag, then publish the GitHub release:
git tag -a v2.0.0 -m "v2.0.0"
git push origin v2.0.0
gh release create v2.0.0 --verify-tag --generate-notes --title v2.0.0
Metadata
Release files for modwire-mermaid 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| modwire_mermaid-2.0.0.tar.gz | 77.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modwire_mermaid-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 268.9 kB
Release files / modwire_mermaid-2.0.0.tar.gz
| Download URL | modwire_mermaid-2.0.0.tar.gz |
|---|---|
| Size | 77.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ac2427259ea97d7f0f0e08b37f15583d0419eb72e4f178654d21dea1b8c4d0d
|
|
BLAKE2b-256 checksum How to use checksums |
2f6e649826cee76d2944226576da2cd821aaef4d6dd854769f3c24915864fbfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 7, 2026.
Transparency logRelease files / modwire_mermaid-2.0.0-py3-none-any.whl
| Download URL | modwire_mermaid-2.0.0-py3-none-any.whl |
|---|---|
| Size | 191.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af3b944087c6fcf1f5ff6748aa35b52f97a71ffd606bf8f8b73bc760dabf042b
|
|
BLAKE2b-256 checksum How to use checksums |
0a813cf1511ea022f52742238e671a17a67c1b45bec23be429cfd3593b62df52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 7, 2026.
Transparency log