Skip to main content

Sphinx API documentation generator

Project description

Documentation Github Build Status PyPI Version Supported Python Versions Formatted with Ruff

Sphinx AutoAPI is a Sphinx extension for generating complete API documentation without needing to load, run, or import the project being documented.

In contrast to the traditional Sphinx autodoc, which requires manual authoring and uses code imports, AutoAPI finds and generates documentation by parsing source code.

For more information, see the full documentation.

Getting Started

The following steps will walk through how to add AutoAPI to an existing Sphinx project. For instructions on how to set up a Sphinx project, see Sphinx’s documentation.

Installation

AutoAPI can be installed through pip:

pip install sphinx-autoapi

Next, add and configure AutoAPI in your Sphinx project’s conf.py.

extensions.append('autoapi.extension')

autoapi_dirs = ['path/to/source/files', 'src']

When the documentation is built, AutoAPI will now generate API documentation into an autoapi/ directory and add an entry to the documentation in your top level table of contents!

To configure AutoAPI behaviour further, see the Configuration documentation.

Contributing

Running the tests

Tests are executed through tox.

tox

Code Style

Code is formatted using ruff.

You can check your formatting using ruff format’s check mode:

tox -e format

You can also get ruff to format your changes for you:

ruff format

Release Notes

Release notes are managed through towncrier. When making a pull request you will need to create a news fragment to document your change:

tox -e release_notes -- create --help

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License. See the LICENSE.rst file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_autoapi-3.8.0.tar.gz (58.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_autoapi-3.8.0-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_autoapi-3.8.0.tar.gz.

File metadata

  • Download URL: sphinx_autoapi-3.8.0.tar.gz
  • Upload date:
  • Size: 58.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_autoapi-3.8.0.tar.gz
Algorithm Hash digest
SHA256 9f8ac7d43baf28a0831ac0e392fab6a095b875af07e52d135a5f716cc3cf1142
MD5 ddcd0b1a7b16f39d6e8eab7cc8f6f377
BLAKE2b-256 f825386d851320bc306e9d7d41b8cecf113f638e205a99595c481c146622de94

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autoapi-3.8.0.tar.gz:

Publisher: release.yml on readthedocs/sphinx-autoapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_autoapi-3.8.0-py3-none-any.whl.

File metadata

  • Download URL: sphinx_autoapi-3.8.0-py3-none-any.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_autoapi-3.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 245aefdeab85609ae4aa3576b0d99f69676aa6333dda438761bd125755b3c42d
MD5 a4d9fe9c6dbd176567beaca3f4c35d23
BLAKE2b-256 2f3a8923a543fa2422d32be4c5311f488e4f275acde263c811e4d5d22bb544cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autoapi-3.8.0-py3-none-any.whl:

Publisher: release.yml on readthedocs/sphinx-autoapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page