pydoc-markdown
Create Python API documentation in Markdown format.
What it is and what it does
Pydoc-Markdown is a command-line tool that reads Python source code and generates Markdown-formatted API documentation without executing the code. It parses docstrings in multiple styles (Sphinx, Google, Pydoc-Markdown) and converts them to properly formatted Markdown, making it useful for teams that want to keep API docs in version control alongside their source.
The tool supports configuration via YAML or pyproject.toml files and can integrate with static site generators like MkDocs and Hugo, either directly or through the Novella build backend. It understands variable docstrings through special comment syntax and generates cross-references between API objects. With 14 runtime dependencies including Jinja2, click, and docspec, it provides a complete pipeline from Python source to publishable documentation.
Use it for:
- Generate API reference documentation for a Python library and commit it to version control alongside source code.
- Integrate API documentation generation into a MkDocs or Hugo site build using Novella.
- Convert existing docstrings in Sphinx or Google style to Markdown for a new documentation site.
- Document variable assignments and module-level constants using docspec comment syntax.
- Create a CI/CD step that regenerates and validates API docs on every commit.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pydoc-Markdown parses Python source code and generates API documentation in Markdown format, supporting multiple docstring styles and integrating with static site generators.
Yes, if you need Markdown-based API documentation for Python projects. The tool is actively maintained, has no known vulnerabilities, and low install friction. Verify that the configuration style you plan to use (YAML, pyproject.toml, or Novella) is stable for your workflow before committing to it.
Install
pydoc-markdown on PyPI
pip
pip install pydoc-markdownuv
uv add pydoc-markdownpoetry
poetry add pydoc-markdownInstalling pydoc-markdown
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with recent commits; the project remains functional and under active development.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the original license notice.
Quickstart
pip install pydoc-markdown
pydoc-markdown --help
# Or: pipx install pydoc-markdown
Requires Python 3.7 or later; the package you document can target any Python version.
Verify before relying
- Whether the YAML and pyproject.toml configuration formats are equally maintained after the shift toward Novella integration.
- Current state of Novella integration stability and whether it is production-ready for existing workflows.
- Performance characteristics when documenting large codebases with many modules and classes.
- Time since latest release and implications for stability in production use.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7,<4.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 14 — PyYAML, click, databind.core, databind.json, docspec, docspec-python, docstring-parser, jinja2, nr.util, requests, tomli, tomli_w, watchdog, yapf |
| Maintenance | actively maintained — 1,145 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 245,261/month — #8,736 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pydoc_markdown-4.8.2-py3-none-any.whl
Keywords: documentation, docs, generator, markdown, pydoc
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
haystack-pydoc-toolsGenerates Docusaurus-compatible Markdown API…
permissive · top 15,000 on PyPI
mkdocsMkDocs generates static HTML documentation…
permissive · top 5,000 on PyPI
docspec-pythonParses Python source code into structured…
unclear · top 15,000 on PyPI
numpydocA Sphinx extension that parses and renders…
permissive · top 5,000 on PyPI
quartodocquartodoc generates Python API reference…
permissive · top 15,000 on PyPI
mkdocstrings-python-legacyA legacy Python documentation handler for…
permissive · top 15,000 on PyPI
mkdocs-clickGenerates API documentation for Click…
permissive · top 5,000 on PyPI
mdformat-mkdocsAn mdformat plugin that formats Markdown for…
permissive · top 15,000 on PyPI
pytest-markdown-docsA pytest plugin that executes Python code…
permissive · top 15,000 on PyPI
mkdocstringsAn MkDocs plugin that automatically generates…
permissive · top 5,000 on PyPI