Skip to main content

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


pymermaiddiagram logo

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


Download files

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

Source Distribution

pymermaiddiagram-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

pymermaiddiagram-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for pymermaiddiagram-0.0.3.tar.gz
Algorithm Hash digest
SHA256 399c69ff290b203b732b716dbf20a1808aa0c15c53547440e98a05d0fedd1664
MD5 0645015c6bd6a57b5f1976b08d224310
BLAKE2b-256 9ab24cb8929a98aa8a6e196c58f3ea79dc02327d5d9b356cd64fcdb1c7d88c89

See more details on using hashes here.

File details

Details for the file pymermaiddiagram-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pymermaiddiagram-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 848b69d53f64c37968e24dbd8f988286ed4af554f19c34b7d296568002056e3b
MD5 6ea131adde6600566e34ee48bb04a263
BLAKE2b-256 e2ee2afed46bf83c8207bb2a2d2141fef587b6ffbe4750a620d3a233aedbf5a4

See more details on using hashes here.

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