Skip to main content

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);
""")

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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file mermaid-python-0.1.tar.gz.

File metadata

  • Download URL: mermaid-python-0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for mermaid-python-0.1.tar.gz
Algorithm Hash digest
SHA256 0d9e4d90d7487453760bdb09b7722a6c5a333c6b76479171df3abc6311d53830
MD5 12d05254d44a51ad5f5e14e2cbde0485
BLAKE2b-256 c4db2ec1a0ce2a8d7a1b5be13ce8f8daec54a9866529151b5a904c5e2c634a12

See more details on using hashes here.

File details

Details for the file mermaid_python-0.1-py3-none-any.whl.

File metadata

  • Download URL: mermaid_python-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for mermaid_python-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c92ae677a44d4e1cf4e6abbdde29046c56da647dfcb4e910eb3f9230847c16d
MD5 3becb512f05655d11021da1ceb90b3c1
BLAKE2b-256 460bdc6f1d684ab5d9c9061777afa5f428d4d7b8d91f660f7da50395fecc2b5b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page