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
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.2.6.tar.gz.
File metadata
- Download URL: mermkit-0.2.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b720f12a46839f0f816058be4505f0d3fb2a70ae658c354e444e5e3fb3be912
|
|
| MD5 |
878c36f2abc56efa3b011806d81c1562
|
|
| BLAKE2b-256 |
15b53c2b610e1093bf6a0ed09d8f20555cb4444efdc0a0c7746def140249a5ce
|
Provenance
The following attestation bundles were made for mermkit-0.2.6.tar.gz:
Publisher:
release.yml on MermaidKit/mermkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mermkit-0.2.6.tar.gz -
Subject digest:
9b720f12a46839f0f816058be4505f0d3fb2a70ae658c354e444e5e3fb3be912 - Sigstore transparency entry: 895959013
- Sigstore integration time:
-
Permalink:
MermaidKit/mermkit@46a0acbc51894678d8f60e63ea7be2f6cc8daf5d -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/MermaidKit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@46a0acbc51894678d8f60e63ea7be2f6cc8daf5d -
Trigger Event:
push
-
Statement type:
File details
Details for the file mermkit-0.2.6-py3-none-any.whl.
File metadata
- Download URL: mermkit-0.2.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7138768ad7b0167f896d8293a06132801c734916042c95e085b42fce8fc88297
|
|
| MD5 |
37df27dcf58ebb4f2331d0f632a03f90
|
|
| BLAKE2b-256 |
f8df002d22d30eb0e141b89fde433f5f0c922e5dd3b4ad16643198c4b648750b
|
Provenance
The following attestation bundles were made for mermkit-0.2.6-py3-none-any.whl:
Publisher:
release.yml on MermaidKit/mermkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mermkit-0.2.6-py3-none-any.whl -
Subject digest:
7138768ad7b0167f896d8293a06132801c734916042c95e085b42fce8fc88297 - Sigstore transparency entry: 895959053
- Sigstore integration time:
-
Permalink:
MermaidKit/mermkit@46a0acbc51894678d8f60e63ea7be2f6cc8daf5d -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/MermaidKit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@46a0acbc51894678d8f60e63ea7be2f6cc8daf5d -
Trigger Event:
push
-
Statement type: