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.2.tar.gz (15.8 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.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_mermaid-0.1.2.tar.gz
  • Upload date:
  • Size: 15.8 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.2.tar.gz
Algorithm Hash digest
SHA256 32bc914de4ae9812f7ec3fc7edd2e59260c026cae700b20d6a75258a0dce490f
MD5 f86ca3e7bc7430a245b9a243bb374b44
BLAKE2b-256 c6b89099e0d29a80ce8e3ac2838105f03e11cb760dde402aff536b15da427c3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_mermaid-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd7e3a69dd7dcdcdf5408355e9d19e1f8d582d88bf2908549d806f963f4016e
MD5 e3798021e106edae239a14b46e6a8f84
BLAKE2b-256 48a31187f7ece9bbd5c856983465bdb3d78e07f6c828e401a29ccd1a496ad8ba

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