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']

Optional dependencies

mmdr has no required Python dependencies. However, .numpy() requires numpy if you want to use it:

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