Skip to main content

A package for generating diagrams using Mermaid JS

Project description

mermaid-python

You can use this package to generate diagrams using Mermaid JS in a Jupyter notebook.

To install, run pip install mermaid-python.

You can generate a simple flowchart by running:

from mermaid import Mermaid
Mermaid("graph TB\na-->b")

You can also use themes:

Mermaid("""%%{
    init: {
        'theme': 'base',
        'themeVariables': {
        'primaryColor': '#BB2528',
        'primaryTextColor': '#fff',
        'primaryBorderColor': '#7C0000',
        'lineColor': '#F8B229',
        'secondaryColor': '#006100',
        'tertiaryColor': '#fff'
        }
    }
    }%%
    graph LR
    A --- B
    B-->C[fa:fa-ban forbidden]
    B-->D(fa:fa-spinner);
""")

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mermaid-python-0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

mermaid_python-0.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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