A library to create mermaid.js diagrams using python
Project description
PyMermaid
A library to create mermaid.js diagrams using python
Coded by Gioele SL Fierro
How to use pymermaiddiagrams
import base64
import requests
import io
from PIL import Image
from pymermaiddiagram import createDiagram, saveDiagram
def createAndShow(string_description):
diagram_image = createDiagram(string_description)
diagram_image.show()
def save(string_description):
saveDiagram(diagram_description, image_name = "test")
if __name__ == "__main__":
string_description = "graph LR;A-->B;A-->C;B-->D;C-->D;"
createAndShow(string_description)
save(string_description)
Project details
Release history Release notifications | RSS feed
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 pymermaiddiagram-0.0.3.tar.gz.
File metadata
- Download URL: pymermaiddiagram-0.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
399c69ff290b203b732b716dbf20a1808aa0c15c53547440e98a05d0fedd1664
|
|
| MD5 |
0645015c6bd6a57b5f1976b08d224310
|
|
| BLAKE2b-256 |
9ab24cb8929a98aa8a6e196c58f3ea79dc02327d5d9b356cd64fcdb1c7d88c89
|
File details
Details for the file pymermaiddiagram-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pymermaiddiagram-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
848b69d53f64c37968e24dbd8f988286ed4af554f19c34b7d296568002056e3b
|
|
| MD5 |
6ea131adde6600566e34ee48bb04a263
|
|
| BLAKE2b-256 |
e2ee2afed46bf83c8207bb2a2d2141fef587b6ffbe4750a620d3a233aedbf5a4
|