Description
pdoc is a tool that auto-generates API documentation for Python libraries. It reads the docstrings you already write and needs no configuration. The output follows your project's module hierarchy, and the tool has first-class support for type annotations, cross-links between identifiers, and both numpydoc and Google-style docstrings. An integrated live-reloading web server lets you preview the documentation while you write. You run pdoc on a module, for example pdoc demo.py, to see the rendered documentation for it. The tool is published on PyPI, and its source and changelog are open on GitHub under the mitmproxy organisation. The site lists 16.0.0 as the latest release. Many other Python projects use pdoc for their documentation, according to the site, which also mentions autofix.ci, a tool that fixes pull requests automatically and was built by the pdoc developers.…
Highlights
- Generates API docs from your docstrings
- No configuration needed
- Type annotations and cross-links
- Live-reloading web server
- Supports numpydoc and Google-style docstrings
Ratings & Reviews
No ratings yet
Be the first to rate Pdoc.
People also visit
Pydoctor
This is pydoctor, an API documentation generator that works by static analysis
Pdoc FAQ
What is pdoc?
A tool that auto-generates API documentation for Python libraries from their docstrings.
Do I need to configure it?
No. The site says pdoc requires no configuration.
Which docstring styles work?
numpydoc and Google-style docstrings.
Can I preview the docs while I work?
Yes. It has an integrated live-reloading web server.
How do I try it?
Run pdoc on a module, for example pdoc demo.py, to view the rendered documentation.
Is it free?
Yes. It is open source on GitHub, and the listing shows it as free.
What are the best Pdoc alternatives?
Popular alternatives to Pdoc include Pydoctor, Yii2 Apidoc and NaturalDocs. See all Pdoc alternatives






