pyromark
pyromark (stands for Python Rust Optimized Markdown) is a blazingly fast CommonMark-compliant Markdown parser for Python.
Uses pulldown-cmark Rust crate under the hood.
Installation
python -m pip install -U pyromark
Example
import pyromark
html = pyromark.markdown("# Hello world")
assert html == "<h1>Hello world</h1>\n"
Documentation
https://pyromark.readthedocs.io
Performance
128x faster than Markdown,
105x faster than markdown-it-py,
79x faster than mistune,
8x faster than markdown-it-pyrs.
If you use threading, the difference with other libraries will be even more enormous, since pyromark releases the GIL.
See benchmark.
License
MIT