Skip to content

Installation

Requirements

  • Python 3.9 or newer
  • That's it.

No Node.js, no npm, no system libraries, no compiler. mmdr ships as a pre-built native wheel for all major platforms.

Install from PyPI

pip install mmdr

Verify

mmdr --version
import mmdr
print(mmdr.__version__)
print(mmdr.backends())
# ['merman', 'mermaid-rs-renderer']

Dependencies

mmdr depends on novasvg (>=0.10), which handles PNG / raw-pixel output. It is installed automatically and ships pre-built wheels for the common platforms.

Optional dependencies

.numpy() requires NumPy:

pip install mmdr[numpy]   # or: pip install numpy

Build from source

If you want to build from source (e.g. to use the latest unreleased code), you need Rust and maturin:

git clone https://github.com/MohammadRaziei/mmdr.git
cd mmdr
pip install maturin
maturin develop --release