pyandoc
Python wrapper for Pandoc - the universal document converter
What it is and what it does
Pyandoc is a thin Python wrapper around Pandoc, the universal document converter. It exposes document formats as properties on a Document object, letting you read content in one format and write it out in another by simple attribute assignment. For example, you can load Markdown, then access the `.rst` property to get reStructuredText output, or `.html` for HTML.
The package has no Python runtime dependencies—it relies entirely on Pandoc being installed on your system. It was last released on 2016-02-04 and is no longer maintained; the repository is archived. While it still appears in download statistics, its age and lack of updates mean it may not work smoothly with modern Python versions or recent Pandoc releases.
Use it for:
- Convert Markdown documentation to reStructuredText for Sphinx-based projects.
- Batch-convert document collections between formats (e.g., Markdown to HTML or LaTeX).
- Build documentation pipelines that need to output multiple formats from a single source.
- Automate format conversion in legacy Python 2 or early Python 3 projects where Pandoc is deployed.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pyandoc wraps Pandoc to convert between document formats by reading from and writing to a Document object's format properties.
No. The package is abandoned (last update 2016-02-04) and untested against Python versions beyond 3.5. While it has no known vulnerabilities and carries a permissive license, its age and lack of maintenance create real risk of incompatibility with modern Python and Pandoc. For new projects, call Pandoc directly via subprocess or use a maintained alternative; for legacy systems where it already works, keep it but do not expand its use.
Install
pyandoc on PyPI
pip
pip install pyandocuv
uv add pyandocpoetry
poetry add pyandocInstalling pyandoc
Before you install
Installation requires Pandoc to be present on the system; the package itself has no Python dependencies but is abandoned since 2016 and last tested against Python 3.5, raising compatibility concerns with modern Python versions.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in your own projects.
Quickstart
import pyandoc
doc = pyandoc.Document()
doc.markdown = '# Heading\n\nSome text'
print(doc.rst)
Pandoc must be installed and available on the system PATH; pyandoc will attempt to locate it automatically.
Verify before relying
- Whether pyandoc works reliably with modern Python versions despite classifiers only claiming up to 3.5.
- Current status of automatic Pandoc discovery on Windows, macOS, and Linux systems.
- Whether all listed output formats remain supported by current Pandoc versions.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,844 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 876,997/month — #4,829 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyandoc-0.2.0.tar.gz
Tags
More Markup packages
PyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
markdown-it-pyA Python markdown parser that converts markdown…
permissive · top 100 on PyPI
beautifulsoup4Beautiful Soup parses HTML and XML documents…
permissive · top 100 on PyPI
et-xmlfileet_xmlfile writes large XML files with minimal…
permissive · top 1,000 on PyPI
tomlkitParses and edits TOML files while preserving…
permissive · top 1,000 on PyPI
docstring-parserParses Python docstrings in ReST, Google,…
permissive · top 1,000 on PyPI
pandocPandoc Python Library wraps the Pandoc document…
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
panflutePanflute provides a Pythonic interface for…
permissive · top 15,000 on PyPI
pandocfiltersProvides Python utilities for writing pandoc…
permissive · top 1,000 on PyPI
setuptools-markdownConverts Markdown files to reStructuredText…
permissive · top 15,000 on PyPI
nbconvertnbconvert converts Jupyter notebooks (.ipynb…
permissive · top 1,000 on PyPI
m2r2Converts markdown files with embedded…
permissive · top 15,000 on PyPI
spire-docSpire.Doc creates, reads, modifies, and…
unclear · top 15,000 on PyPI
antiwordWraps LibreOffice's text conversion to convert…
permissive · top 15,000 on PyPI