pandoc
Pandoc Documents for Python
What it is and what it does
Pandoc Python Library is a Python wrapper around Pandoc's document model, allowing you to read, analyze, and write documents programmatically. It exposes Pandoc's internal representation—metadata, blocks, and inline elements—so you can manipulate document structure directly in Python code rather than shelling out to the command-line tool.
The package depends on plumbum for subprocess handling and ply for parsing. It requires the standalone Pandoc tool to be pre-installed on your system; the Python library itself is a thin interface over that external dependency. It's useful for document pipelines, bulk transformations, and programmatic document generation where you need fine-grained control over Pandoc's AST.
Use it for:
- Batch convert documents between formats (Markdown to HTML, LaTeX to Docx) with Python control flow.
- Programmatically modify document structure—rewrite headings, filter content, inject metadata—before converting.
- Build documentation generators or static site builders that need to parse and transform Markdown or other formats.
- Analyze document structure and extract metadata or specific elements from multiple files.
- Integrate Pandoc's conversion capabilities into Python data pipelines or ETL workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pandoc Python Library wraps the Pandoc document model to analyze, create, and transform documents programmatically in Python.
Yes, if you need programmatic document manipulation with Pandoc's AST and are willing to manage the external Pandoc dependency. No, if you want active maintenance or Python version guarantees—the package is dormant and its compatibility with modern Pandoc versions is unverified. Install only if your Pandoc version is stable and you can tolerate no upstream support.
Install
pandoc on PyPI
pip
pip install pandocuv
uv add pandocpoetry
poetry add pandocInstalling pandoc
Before you install
High install friction: requires the Pandoc command-line tool (pandoc-2.4 or later) to be installed separately before the Python library can function. Maintenance is dormant—last release was 737 days ago—so expect no active support or updates.
License in practice
MIT License permits commercial and private use with minimal restrictions, making it safe to adopt in most projects.
Quickstart
# Install Pandoc system tool first (e.g., conda install -c conda-forge pandoc)
# Then: pip install pandoc
import pandoc
doc = pandoc.read("Hello world!")
print(doc)
Pandoc command-line tool must be installed and available on the system PATH before the Python library can work.
Verify before relying
- Whether the package works with recent Pandoc versions beyond 2.4, given the long dormancy.
- Python version compatibility details, as requires_python is unspecified in the metadata.
Package facts
| License | MIT License (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | 2 — plumbum, ply |
| Maintenance | dormant — 737 days since the last release |
| First released | |
| Downloads | 756,864/month — #5,138 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pandoc-2.4.tar.gz
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
pandocfiltersProvides Python utilities for writing pandoc…
permissive · top 1,000 on PyPI
prosemirrorProvides Python implementations of core…
permissive · top 15,000 on PyPI
pyandocPyandoc wraps Pandoc to convert between…
permissive · top 5,000 on PyPI
panflutePanflute provides a Pythonic interface for…
permissive · top 15,000 on PyPI
pypandocPypandoc wraps pandoc, a universal document…
permissive · top 5,000 on PyPI
pypandoc-binarypypandoc_binary wraps pandoc, a universal…
permissive · top 5,000 on PyPI
spire-docSpire.Doc creates, reads, modifies, and…
unclear · top 15,000 on PyPI
mammothConverts Microsoft Word .docx documents to…
permissive · top 5,000 on PyPI
nbconvertnbconvert converts Jupyter notebooks (.ipynb…
permissive · top 1,000 on PyPI
adf-libadf_lib creates and manipulates Atlassian…
permissive · top 15,000 on PyPI