Description
pdoc generates API documentation for Python 3 projects automatically from the code and its docstrings. You point it at a module file, a package directory or an import path, and it writes the documentation without special configuration. It supports Markdown, numpydoc and Google-style docstrings, LaTeX math and some reStructuredText directives. It handles PEP 484 and PEP 526 type annotations, respects __all__ when it is defined, and inherits docstrings for overridden class members when none are given. It documents module, class and instance variables by reading the abstract syntax tree, and it automatically links to referenced identifiers. A special __pdoc__ dictionary lets you override docstrings for particular objects, and the templates can be customised or extended. A built-in development web server gives a quick preview of rendered docstrings while you write them.…
Highlights
- Docs from code and docstrings, no config
- Markdown, numpydoc and Google docstrings
- Respects __all__ and type annotations
- Automatic cross-linking
- Built-in preview web server
Ratings & Reviews
No ratings yet
Be the first to rate Pdoc.
People also visit
Lazydocs
Generate markdown API documentation from Google-style Python docstring

code-documentation
The user requests to generate, create, or improve documentation for code, APIs

api-documentation-generator
Generate comprehensive, developer-friendly API documentation from code
Pdoc FAQ
What is pdoc?
A tool that automatically generates API documentation for Python 3 projects from their code and docstrings.
How do I install it?
Run pip install pdoc3, then run pdoc on your module, package or import path.
Which docstring formats work?
Markdown, numpydoc and Google-style docstrings, along with LaTeX math and some reST directives.
Does it need configuration?
No. The README says it generates sensible documentation without special configuration.
Can I preview while I write?
Yes. It includes a development web server for near-instant preview.
What are the best Pdoc alternatives?
Popular alternatives to Pdoc include ansible-doctor. See all Pdoc alternatives









