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;
    A-->B;
    A-->C;
    B-->D;
    C-->D;""")
graphe: Mermaid = Mermaid(graph)
graphe # !! note this work just in notbooke that render html.

the result will be like this

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

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 :) .

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.6.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

mermaid_py-0.1.6-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mermaid_py-0.1.6.tar.gz
  • Upload date:
  • Size: 3.1 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.6.tar.gz
Algorithm Hash digest
SHA256 989991f64902f606b97dd2c5352a8239262081d9d44fef4c160d4137f7667daf
MD5 967120de9984a6b76b865799d13fd85b
BLAKE2b-256 565ad46e4147a31e15f4232171257ae2d829a56ac50f8dddb2eedd6934caf77d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mermaid_py-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 63292dfbb41e21e69457e1e8b84ac14919a4a58e6c19cf3b0f4e1b5cff2e062a
MD5 f21c27d91b677b2f4a364fb6e392390f
BLAKE2b-256 68926d3671a49481b3764427d95ce08769babea1626a6b484620a896636dd43e

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