{"id":8516,"library":"pyromark","title":"pyromark - Blazingly Fast Markdown Parser","description":"pyromark (stands for Python Rust Optimized Markdown) is a blazingly fast CommonMark-compliant Markdown parser for Python. It leverages the `pulldown-cmark` Rust crate under the hood for high performance, often outperforming other Python Markdown libraries significantly. The library is actively maintained and releases new versions periodically. It's designed for speed, including releasing the GIL for better threading performance.","status":"active","version":"0.9.10","language":"en","source_language":"en","source_url":"https://github.com/monosans/pyromark","tags":["markdown","parser","rust","performance","CommonMark"],"install":[{"cmd":"pip install -U pyromark","lang":"bash","label":"Install pyromark"}],"dependencies":[],"imports":[{"note":"The primary function `markdown` is directly available on the `pyromark` module.","symbol":"markdown","correct":"import pyromark\nhtml = pyromark.markdown('**Hello**, *world*!')"}],"quickstart":{"code":"import pyromark\n\nmarkdown_text = \"\"\"\n# My Title\n\nThis is some **bold** and *italic* text.\n\n- Item 1\n- Item 2\n\n```python\nprint('Hello, Pyromark!')\n```\n\"\"\"\n\nhtml_output = pyromark.markdown(markdown_text)\nprint(html_output)","lang":"python","description":"Parse a Markdown string to an HTML string using the default CommonMark options."},"warnings":[{"fix":"Always use `pip install pyromark` and `import pyromark`. Double-check documentation for the correct library if uncertain.","message":"Be aware of naming collision: 'PyroMark' (with a capital 'P') is also a trademark for biotechnology instruments and reagents from QIAGEN. Ensure you are installing and using `pyromark` (lowercase 'p') for Markdown parsing, not the QIAGEN products.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Ensure your Python environment is running Python 3.10 or a later version. Upgrade Python if necessary.","message":"pyromark requires Python 3.10 or newer. Installing on older Python versions will fail.","severity":"gotcha","affected_versions":"<=0.9.10"},{"fix":"Understand your application's concurrency model. For optimal performance in a multi-threaded CPU-bound scenario, ensure your application design leverages the GIL release.","message":"While pyromark is written in Rust and releases the GIL, this benefit is primarily for CPU-bound tasks in a multi-threaded Python application. For single-threaded applications or I/O-bound tasks, the performance gains from GIL release might not be as pronounced.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-16T00:00:00.000Z","next_check":"2026-07-15T00:00:00.000Z","problems":[{"fix":"Verify your Python version with `python --version`. If it's older than 3.10, upgrade to Python 3.10 or newer. Also, check your internet connection and PyPI accessibility.","cause":"This usually indicates an attempt to install on an unsupported Python version (e.g., Python 3.9 or older) or an issue with network connectivity preventing access to PyPI.","error":"ERROR: Could not find a version that satisfies the requirement pyromark"},{"fix":"The main parsing function is a method on the imported `pyromark` module itself. Use `import pyromark` and then call `pyromark.markdown(your_text)`.","cause":"Users might attempt to import `markdown` as a top-level function directly from the `pyromark` package, assuming a different API structure.","error":"ImportError: cannot import name 'markdown' from 'pyromark'"}]}