Skip to main content

Sphinx extension: auto-generates API docs from Zope interfaces

Project description

https://github.com/repoze/repoze.sphinx.autointerface/actions/workflows/ci-tests.yml/badge.svg https://img.shields.io/pypi/v/repoze.sphinx.autointerface.svg https://img.shields.io/pypi/pyversions/repoze.sphinx.autointerface.svg

Overview

Thie package defines an extension for the Sphinx documentation system. The extension allows generation of API documentation by introspection of zope.interface instances in code.

Installation

Install via pip:

pip install repoze.sphinx.autointerface

Registering the Extension

Add repoze.sphinx.autointerface to the extensions list in the conf.py of the Sphinx documentation for your product.

extensions = [
    "sphinx.ext.autodoc",
    "sphinx.ext.doctest",
    "repoze.sphinx.autointerface",
]

Using the Extension

At appropriate points in your document, call out the autodoc interface.

.. autointerface:: yourpackage.interfaces.IFoo

Output from the directive includes

  • the fully-qualified interface name

  • any base interfaces

  • the docstring from the interface, rendered as reStructuredText

  • the members of the interface (methods and attributes)

    • For each attribute, the output includes the attribute name and its description.

    • For each method, the output includes the method name, its signature, and its docstring (also rendered as reStructuredText).

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

repoze_sphinx_autointerface-1.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

repoze_sphinx_autointerface-1.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file repoze_sphinx_autointerface-1.1.0.tar.gz.

File metadata

File hashes

Hashes for repoze_sphinx_autointerface-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3d17ba776019efc9b36415fb3fbb0820f23c3c2e816238c420f1d803f6ad3137
MD5 f0d0c3257770ee4a968cc0c2a172081e
BLAKE2b-256 adb79192240e74b747a08b59a7e54fe88039c15065c5d2571c1ef0a915e5f5e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for repoze_sphinx_autointerface-1.1.0.tar.gz:

Publisher: pypi.yaml on repoze/repoze.sphinx.autointerface

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

File details

Details for the file repoze_sphinx_autointerface-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for repoze_sphinx_autointerface-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 932700ff64612b72447a93e958e67c27dd09a881d6dc97d801e98bdfa932c07f
MD5 f8a484a6605b8cabc9b43358366f1b2d
BLAKE2b-256 cdcabf0f1bb5ea32ff0d1031c532b49a4a1c2a0a6152e25ac252210af2d55ec2

See more details on using hashes here.

Provenance

The following attestation bundles were made for repoze_sphinx_autointerface-1.1.0-py3-none-any.whl:

Publisher: pypi.yaml on repoze/repoze.sphinx.autointerface

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