instaui-mermaid
English| 简体中文
📖 Introduction
instaui-mermaid is a Python package for generating mermaid diagrams in InstaUI. It is a part of the InstaUI project, which is a Python-based UI library for rapidly building user interfaces.
🚀Installation
pip install instaui-mermaid instaui[web]
uv add instaui-mermaid instaui[web]
📚Usage
from instaui_mermaid import Mermaid
from instaui import ui
@ui.page("/")
def index():
graph = r"""
graph TD
a --> b
"""
# ui
Mermaid(graph)
ui.server(debug=True).run()
Dynamic graph:
from instaui_mermaid import Mermaid
from instaui import ui, html
@ui.page("/")
def index():
themes = ["default", "neutral", "dark", "forest", "base"]
theme = ui.state(themes[0])
graph = ui.str_format(
r"""
---
config:
theme: {theme}
---
graph TD
a --> b
""",
theme=theme,
)
# ui
html.select.from_list(themes, value = theme)
Mermaid(graph)
ui.server(debug=True).run()
Metadata
Release files for instaui-mermaid 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| instaui_mermaid-0.2.0.tar.gz | 795.3 kB | Without provenance | Details for instaui_mermaid-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| instaui_mermaid-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for instaui_mermaid-0.2.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / instaui_mermaid-0.2.0.tar.gz
| Download URL | instaui_mermaid-0.2.0.tar.gz |
|---|---|
| Size | 795.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b647079771609aaf8e24b7b67a6b954614546b7fd6f25e824d067a1694384b87
|
|
BLAKE2b-256 checksum How to use checksums |
d60aac684b807a0579ee7c913e82f7c8202f9e895836c4ada4e34b7bbb1606fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Release files / instaui_mermaid-0.2.0-py3-none-any.whl
| Download URL | instaui_mermaid-0.2.0-py3-none-any.whl |
|---|---|
| Size | 832.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bb411316d4d767db5a2fd064d859958f51d5a5501a6142410076a6f84ffec13
|
|
BLAKE2b-256 checksum How to use checksums |
26201f6a8a739566536ed4332d652e5c9c63db498a45aea4dddc01c404f1c2f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Security for instaui-mermaid 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.