Skip to main content

mermaiden

mermaiden 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 mermaiden

Quick start

from mermaiden.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

Download files

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

Source Distribution

mermaiden-3.0.0.tar.gz (76.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mermaiden-3.0.0-py3-none-any.whl (187.3 kB view details)

Uploaded Python 3

File details

Details for the file mermaiden-3.0.0.tar.gz.

File metadata

  • Download URL: mermaiden-3.0.0.tar.gz
  • Upload date:
  • Size: 76.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mermaiden-3.0.0.tar.gz
Algorithm Hash digest
SHA256 ef1090ff3b106b170c74d11250ff47cc0d41691697f1e3d1ebd8301d1dc283f3
MD5 9ae383eb7b886a7fb8b8b394867d4155
BLAKE2b-256 d5cb0130019dba8d06715683ab6fa3f86e019c07d24b8eba236a92eba1aaa124

See more details on using hashes here.

Provenance

The following attestation bundles were made for mermaiden-3.0.0.tar.gz:

Publisher: release.yml on szpak-dev/mermaiden

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mermaiden-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: mermaiden-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 187.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mermaiden-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22db076edf0479d09f27073d45ded63a9ad03ca0f8fa33a05f71e5d0de9872da
MD5 acc2551f767ac3cbe7ab5fd6ddef037a
BLAKE2b-256 053550acf8928c84a17e4709cb2f5cf7071cf5777f45ae0ada553daf9ae8b60e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mermaiden-3.0.0-py3-none-any.whl:

Publisher: release.yml on szpak-dev/mermaiden

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

7.0.0

2 files

6.0.0

2 files

5.2.3

2 files

5.2.2

2 files

5.2.1

2 files

5.2.0

2 files

5.1.0

2 files

5.0.0

2 files

4.0.0

2 files

3.1.0

2 files

This release

3.0.0 This release

2 files

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