Skip to main content

Python bindings for mermkit (Mermaid rendering toolkit)

Project description

mermkit (Python)

Minimal wrapper around the mermkit CLI.

Install

pip install mermkit

Usage

from mermkit import render

svg = render("graph TD; A-->B", format="svg")

Serve mode

For repeated renders, use the JSON IPC server:

from mermkit import MermkitClient

client = MermkitClient()
client.start()
result = client.render("graph TD; A-->B")
client.close()

Requirements

  • mermkit CLI available on PATH, or set MERMKIT_BIN:
export MERMKIT_BIN=/path/to/mermkit

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

mermkit-0.2.3.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

mermkit-0.2.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file mermkit-0.2.3.tar.gz.

File metadata

  • Download URL: mermkit-0.2.3.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mermkit-0.2.3.tar.gz
Algorithm Hash digest
SHA256 0955250931c9735b06032f27b6f74662909cb297a7d8c5307379b16b8d742be4
MD5 00ed3a130fe9c51f8c6698858f4b8879
BLAKE2b-256 c77aa9b700ed914803e6b79e3e0fddebb409278dbf43210d7592ff08a6bf3e37

See more details on using hashes here.

Provenance

The following attestation bundles were made for mermkit-0.2.3.tar.gz:

Publisher: release.yml on MermaidKit/mermkit

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

File details

Details for the file mermkit-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: mermkit-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mermkit-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ea7d066a2b5ee95b6af65db6a74c870303c6037b5b3cd0d3da40093d5ffa58
MD5 d179fe816f20ffcd4ffe78ddbdd7086a
BLAKE2b-256 8196696b9a4d1df66c6f1a91ce9265a5b83a41640c5b12ddac3807b03406b95e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mermkit-0.2.3-py3-none-any.whl:

Publisher: release.yml on MermaidKit/mermkit

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

Supported by

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