No project description provided
Project description
Python-Mermaid
This modules aims to implement a simple way for developers/admin-sys/devops to create on-the-fly Mermaid diagrams.
Installation
pip install python_mermaid
Getting started
# Creating a simple flowchart diagram
from python_mermaid import FlowChart
the_march_family = [
("Meg","M"),
("Jo", "J"),
("Beth"."B"),
("Amy", "A"),
("Robert March","RM")
]
links = [
("Robert March", "Meg"),
("Robert March", "Jo"),
("Robert March", "Beth"),
("Robert March", "Amy"),
]
chart = Flowchart(
title="Little Women",
nodes=the_march_family,
links=links
)
print(chart)
Returns the following
---
title: "Little Women"
---
graph LR
M["Meg"]
J["Jo"]
B["Beth"]
A["Amy"]
RM["Robert"]
RM --> M
RM --> J
RM --> B
RM --> A
which results can be seen here
Roadmap
- flowchart setup
- Add styles for nodes or links
- More diagrams !
Contribute
Wanna help ? Find a bug ?
- Do not hesitate to fork the repository and send PRs with your changes
- No time to code ? Send a bug/feature issue here
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
python_mermaid-0.1.0.tar.gz
(15.5 kB
view details)
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 python_mermaid-0.1.0.tar.gz.
File metadata
- Download URL: python_mermaid-0.1.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.8 Linux/5.10.157-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
954d9a934d88a7f1ec3243a7ea251f6f70a5b405a90bc9f9bd77bc413760e082
|
|
| MD5 |
10edae7411505eaffba5641104b7c111
|
|
| BLAKE2b-256 |
5fcb2c74c2343adaa158706e81ef8328745e9b90d78e630a969aa41280c2be40
|
File details
Details for the file python_mermaid-0.1.0-py3-none-any.whl.
File metadata
- Download URL: python_mermaid-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.8 Linux/5.10.157-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cb81b2fe9f8db9320e96d96590febf158a42f866746e44fd25283e259311cf8
|
|
| MD5 |
46407a46ba02df05a549ee2ed6ad6bca
|
|
| BLAKE2b-256 |
c60dc32ec995bcb8366dcea9be621e771c46615b974d764ee92edc64d51c6ade
|