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
mermkitCLI available on PATH, or setMERMKIT_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.1.0.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mermkit-0.1.0.tar.gz.
File metadata
- Download URL: mermkit-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
221fdab5e678d34e33b6b7ddb6fc2cb706088ba3c4be5de531b79697fd2a97be
|
|
| MD5 |
d738e5c158c31e27715474b8f36b2bc1
|
|
| BLAKE2b-256 |
e3490155e0268f60159f8898ba1b934d9ec07bcb9ada532d3e801ab07345e652
|
File details
Details for the file mermkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mermkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25d4c8e64a7508794c28968a4e322ee67958355de7186315705910abef6c705a
|
|
| MD5 |
f67e2b5f05232e82710cb22d0e7925e1
|
|
| BLAKE2b-256 |
9bb5bb73c3d5349d6016b81d9d3e445f51463a2f1094e09d6b5b0243a5b98d74
|