skillfed

pydoc-markdown

Create Python API documentation in Markdown format.

pydoc-markdown v4.8.2 245.3K downloads/30d#8,736 on PyPI500
Permissive license MIT Active released

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-markdown

uv

uv add pydoc-markdown

poetry

poetry add pydoc-markdown

Installing 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

Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: End Users/DesktopLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Code GeneratorsTopic :: Utilities

Tags

python api documentation generatormarkdown documentation from docstringspython code to markdown docsdocstring parser markdownapi docs markdown formatpython documentation toolgenerate markdown from python
api-docsmarkdown-generationstatic-site-integration

More Utilities packages