skillfed

sphinx-automodapi

Sphinx extension for auto-generating API documentation for entire modules

sphinx-automodapi v0.22.0 200.6K downloads/30d#9,689 on PyPI67
Permissive license BSD-3-Clause Active released

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

uv

uv add sphinx-automodapi

poetry

poetry add sphinx-automodapi

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3

Tags

sphinx api documentation generatorautomatic module api docssphinx automodapi extensiongenerate api reference sphinxmodule documentation automationsphinx api page generationauto-generate module docs
documentation-automationsphinx-extension

More Sphinx packages

docstring-parser

Parses Python docstrings in ReST, Google,…

permissive · top 1,000 on PyPI

Sphinx

Sphinx generates professional documentation…

permissive · top 1,000 on PyPI

sphinxcontrib-serializinghtml

A Sphinx extension that outputs documentation…

permissive · top 1,000 on PyPI

alabaster

Alabaster is a clean, responsive Sphinx theme…

permissive · top 1,000 on PyPI

sphinxcontrib-htmlhelp

A Sphinx extension that generates HTML help…

permissive · top 1,000 on PyPI

sphinxcontrib-qthelp

A Sphinx extension that converts documentation…

permissive · top 1,000 on PyPI

sphinx-autodoc2

sphinx-autodoc2 generates API documentation for…

permissive · top 15,000 on PyPI

sphinx-argparse

Sphinx extension that automatically generates…

permissive · top 5,000 on PyPI

sphinx-autoapi

Sphinx AutoAPI generates complete API…

permissive · top 5,000 on PyPI

sphinx-panels

A Sphinx extension that adds directives for…

permissive · top 15,000 on PyPI

sphinx-click

Sphinx-click is a Sphinx extension that…

permissive · top 15,000 on PyPI

sphinxext-opengraph

Sphinx extension that automatically generates…

permissive · top 15,000 on PyPI

sphinx-remove-toctrees

A Sphinx extension that selectively removes…

permissive · top 15,000 on PyPI

sphinxcontrib-autoyaml

A Sphinx extension that auto-generates…

permissive · top 15,000 on PyPI

sphinx-reredirects

Sphinx extension that generates HTML redirect…

unclear · top 5,000 on PyPI

sphinx-gallery

Sphinx-Gallery is a Sphinx extension that…

permissive · top 15,000 on PyPI