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:
- Forke the repo and then clone it.
- Navigate to the project directory:
cd mermaid-py
. - create a local enviroment
python3 -m venv env
. - activate the env
source env/bin/activate
. - install the dependecies
poetry install
. - 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
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
File details
Details for the file mermaid_py-0.1.7.tar.gz
.
File metadata
- Download URL: mermaid_py-0.1.7.tar.gz
- Upload date:
- Size: 4.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a161f12890b2641e89040289fd98d1231ba53f9804a2d07c3f5d3da090b80587 |
|
MD5 | 1033105b0d275ba799df1dd490e8b4c7 |
|
BLAKE2b-256 | a34fce8faee94fbd8f9dca2ce5323cc8ab9ce5f074fb53aadfa346e80df91309 |
File details
Details for the file mermaid_py-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: mermaid_py-0.1.7-py3-none-any.whl
- Upload date:
- Size: 6.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9f2b2ed23ee85650f1fddecb0cb9573d6c82d56ec534a09324969db342094cc |
|
MD5 | 4253951841361ab75953eac430f9e26a |
|
BLAKE2b-256 | 4c169f29ca4ea7a5d31b9cde234f606815e9cf0ae531c4227afda58ec63a2655 |