Skip to main content

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 ?

  1. Do not hesitate to fork the repository and send PRs with your changes
  2. 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.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

python_mermaid-0.1.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file python_mermaid-0.1.1.tar.gz.

File metadata

  • Download URL: python_mermaid-0.1.1.tar.gz
  • Upload date:
  • Size: 15.7 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

Hashes for python_mermaid-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d719bdf7d9f5fc097d7cd51523e976b09243371c0e39953a7f6b698d2f8ef7d7
MD5 da453b68a5f63a6bee65fa21fb669461
BLAKE2b-256 15b2a3e28f5761800a0bbe3f3484cb93fc7eebda7731dc508afdecf315adbf8a

See more details on using hashes here.

File details

Details for the file python_mermaid-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: python_mermaid-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 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

Hashes for python_mermaid-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a15fc27fb41c9bd882089c72b804c56b1d4b2ddc43f43f824ea8548c9735ce17
MD5 b23b1398dcb0546697fe19e83da4d523
BLAKE2b-256 6d1ce0ebeeb3b73610147e89567bf50a6a45e531276ae885f20d11f5b00c8eb5

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