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
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)
Built Distribution
Close
Hashes for mermaid_python-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c92ae677a44d4e1cf4e6abbdde29046c56da647dfcb4e910eb3f9230847c16d |
|
MD5 | 3becb512f05655d11021da1ceb90b3c1 |
|
BLAKE2b-256 | 460bdc6f1d684ab5d9c9061777afa5f428d4d7b8d91f660f7da50395fecc2b5b |