Description
mkdocstrings-python is a Python handler for mkdocstrings, which builds API documentation from source code. The handler uses Griffe to collect the object tree and docstrings from Python code. Griffe can read the abstract syntax tree of source files, and it can import code and inspect objects in memory when source is not available. It parses several docstring styles. Type annotations are collected and shown as parameter and return types, and once you load inventories, the handler can add cross-references to objects in your API, the standard library and third-party libraries. Recursive documentation lets you use a module's dotted path to get docs for the whole module. Documented attributes are recognized in modules, classes and __init__ methods. Admonition blocks such as Note and Warning in Google-style docstrings are converted to matching admonitions. You can install it as a mkdocstrings extra or depend on the handler directly. It is for Python projects that publish API docs with MkDocs.…
Highlights
- Collects docs from Python source with Griffe
- Type annotations and cross-references
- Recursive module documentation
- Google, Numpydoc and Sphinx docstring styles
- Admonitions in Google docstrings
Ratings & Reviews
No ratings yet
Be the first to rate Python.
People also visit
Python FAQ
What is mkdocstrings-python?
A Python handler for mkdocstrings that builds API docs from Python code, using Griffe.
How do I install it?
Install it as a mkdocstrings extra, or depend on the handler directly, as the README explains.
Which docstring styles work?
Google, Numpydoc and Sphinx styles.
Is it free?
Yes. The project is open source and public on GitHub.
What are the best Python alternatives?
Popular alternatives to Python include Mkdocs, ProperDocs and Doc2dash. See all Python alternatives

