Mermaid Builder is a Python library designed to generate Mermaid diagram files (.mmd) directly from Python code. With this library, you can easily create and maintain complex flowcharts, sequence diagrams, and other types of diagrams using a programmatic approach.
Support Diagrams
- Flowcharts: Create flowcharts with various shapes, icons, and styles.
- Sequence Diagrams: Generate sequence diagrams with participants, messages, and fragments.
# Latest
pip install git+https://github.com/cuongnb14/mermaid-builder.git@main#egg=mermaid-builder
# Stable
pip install git+https://github.com/cuongnb14/mermaid-builder.git@v1.1.0#egg=mermaid-builder
This scripts creates diagram and saves it to ./outputs. It also prints a live URL to view the diagram directly in your browser. Check example code here https://github.com/cuongnb14/mermaid-builder/tree/main/examples.