Skip to main content

A simple interface for the the famous lib mermaid-js to create diagrams.

Project description

Mermaid-py

this package works as an interface for the famous mermaid-js library that uses scripts to create diagrams.

Description

Briefly describe your project here. Explain what it does and what makes it special.

Examples

first install mermaid-py by pip install mermaid-py.

import mermaid as md
from mermaid.graph import Graph

graph: Graph = Graph('first-graph',"""
graph TD;
    mer(Mermaid)
    flow(FlowChart);
    clas(ClassDiagram)
    gra(Graph)
    flow-link(Link)
    node(Node)
    mer --> flow
    mer --> clas
    mer --> gra
    flow --> node & flow-link
""")
graphe: Mermaid = Mermaid(graph)
graphe # !! note this work just in notbooke that render html.

the result will be like this

graph TD;
    mer(Mermaid)
    flow(FlowChart);
    clas(ClassDiagram)
    gra(Graph)
    flow-link(Link)
    node(Node)
    mer --> flow
    mer --> clas
    mer --> gra
    flow --> node & flow-link

Technologies Used

  • Python3
  • Poetry

To contribute to mermaid-py

If you'd like to contribute to this open source project folow this steps:

  1. Forke the repo and then clone it.
  2. Navigate to the project directory: cd mermaid-py.
  3. create a local enviroment python3 -m venv env.
  4. activate the env source env/bin/activate.
  5. install the dependecies poetry install.
  6. happy coding :) .

List of Diagrames

License

This project is licensed under the MIT License.

Contact

If you have any questions or want to get in touch, you can reach out to me at rachidouhammou21@gmail.com.

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

mermaid_py-0.1.8.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

mermaid_py-0.1.8-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file mermaid_py-0.1.8.tar.gz.

File metadata

  • Download URL: mermaid_py-0.1.8.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Linux/6.2.0-1015-azure

File hashes

Hashes for mermaid_py-0.1.8.tar.gz
Algorithm Hash digest
SHA256 23b4896103b024096f2db67a0e3e8da7ce4a46106d671ec1282fc9126e43111a
MD5 a74057f4786179c86c2151dce59c9635
BLAKE2b-256 ded5fc94109d5ae12548e0428e61c9d34d6d894d81f988960e91aa3fdc70a549

See more details on using hashes here.

File details

Details for the file mermaid_py-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: mermaid_py-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Linux/6.2.0-1015-azure

File hashes

Hashes for mermaid_py-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 498a30e7ea59521db1dcdd1b6a2c4d7553d25ba822b45e5f7a7b7c6077293853
MD5 29704d779b0dc47c7631cf3b2a9a9fa7
BLAKE2b-256 8cbfd1c1e32f48a9d94e4b2e450e9026ebdbb9702811e43235dab609fa303083

See more details on using hashes here.

Supported by

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