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);
""")
Metadata
Release files for mermaid-python 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mermaid-python-0.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mermaid_python-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / mermaid-python-0.1.tar.gz
| Download URL | mermaid-python-0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d9e4d90d7487453760bdb09b7722a6c5a333c6b76479171df3abc6311d53830
|
|
BLAKE2b-256 checksum How to use checksums |
c4db2ec1a0ce2a8d7a1b5be13ce8f8daec54a9866529151b5a904c5e2c634a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / mermaid_python-0.1-py3-none-any.whl
| Download URL | mermaid_python-0.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c92ae677a44d4e1cf4e6abbdde29046c56da647dfcb4e910eb3f9230847c16d
|
|
BLAKE2b-256 checksum How to use checksums |
460bdc6f1d684ab5d9c9061777afa5f428d4d7b8d91f660f7da50395fecc2b5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|