sphinx-automodapi
Sphinx extension for auto-generating API documentation for entire modules
What it is and what it does
sphinx-automodapi is a Sphinx extension that inspects Python modules and automatically generates API documentation pages without requiring manual page creation or detailed docstring scaffolding. It was originally built for the Astropy project but works as a standalone tool for any Python package. The extension reads module structure and docstrings, then outputs formatted API reference pages that Sphinx can build into HTML or other formats.
The package depends on Sphinx for the documentation framework and packaging for version handling. It targets developers who maintain Python libraries and want to reduce the burden of keeping API documentation synchronized with code changes. The extension is stable (production status) and actively maintained, though the Astropy project notes that feature additions are limited to what the project itself requires.
Use it for:
- Generate API reference documentation for a Python library without manually creating individual documentation files for each module.
- Keep API docs in sync with code by automatically reflecting module structure and public APIs during documentation builds.
- Reduce documentation maintenance overhead in projects where modules change frequently or have many submodules.
- Create consistent, searchable API reference pages that Sphinx can integrate into a larger documentation site.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sphinx extension that automatically generates API documentation pages for entire Python modules, reducing manual documentation overhead by introspecting module contents.
Yes, if you maintain a Python package and use Sphinx for documentation. The low install friction, permissive license, active maintenance, and zero known vulnerabilities make it a safe choice. The main caveat is that feature development is limited to Astropy's own needs, so highly specialized requirements may not be addressed—but for standard API documentation generation, it is reliable and well-established.
Install
sphinx-automodapi on PyPI
pip
pip install sphinx-automodapiuv
uv add sphinx-automodapipoetry
poetry add sphinx-automodapiInstalling sphinx-automodapi
Before you install
Low install friction with just two runtime dependencies (packaging and sphinx). Active maintenance with a recent release in December 2025 and ongoing repository activity; last commit in August 2026 indicates current engagement.
License in practice
BSD-3-Clause is a permissive open-source license that allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install sphinx-automodapi
In conf.py:
extensions = ['sphinx_automodapi.automodapi']
In your .rst file:
.. automodapi:: mymodule
Requires Python 3.10 or later; sphinx must be installed and configured with a conf.py file.
Verify before relying
- Whether the extension handles nested submodules and complex package hierarchies automatically.
- Performance characteristics when applied to very large modules or packages.
- Compatibility with recent Sphinx versions beyond what the fact sheet indicates.
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — packaging, sphinx |
| Maintenance | actively maintained — 244 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 200,581/month — #9,689 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sphinx_automodapi-0.22.0-py3-none-any.whl
Tags
More Sphinx packages
Parses Python docstrings in ReST, Google,…
permissive · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
sphinxcontrib-qthelpA Sphinx extension that converts documentation…
permissive · top 1,000 on PyPI
sphinx-autodoc2sphinx-autodoc2 generates API documentation for…
permissive · top 15,000 on PyPI
sphinx-argparseSphinx extension that automatically generates…
permissive · top 5,000 on PyPI
sphinx-autoapiSphinx AutoAPI generates complete API…
permissive · top 5,000 on PyPI
sphinx-panelsA Sphinx extension that adds directives for…
permissive · top 15,000 on PyPI
sphinx-clickSphinx-click is a Sphinx extension that…
permissive · top 15,000 on PyPI
sphinxext-opengraphSphinx extension that automatically generates…
permissive · top 15,000 on PyPI
sphinx-remove-toctreesA Sphinx extension that selectively removes…
permissive · top 15,000 on PyPI
sphinxcontrib-autoyamlA Sphinx extension that auto-generates…
permissive · top 15,000 on PyPI
sphinx-reredirectsSphinx extension that generates HTML redirect…
unclear · top 5,000 on PyPI
sphinx-gallerySphinx-Gallery is a Sphinx extension that…
permissive · top 15,000 on PyPI