Skip to main content

Sphinx extension to enhance autodoc for interrogated modules

Project description

sphinx-interrogatedb

This is a Sphinx extension that provides autodoc support for modules created by interrogate, by augmenting it with information provided by interrogate databases (.in files).

Usage

To make use of this extension, the following steps are needed:

  1. Install the module using pip.
pip install sphinx-interrogatedb
  1. Enable it in conf.py.
extensions = ['sphinx.ext.autodoc', 'sphinx_interrogatedb']
  1. Configure the search path for interrogatedb files.
interrogatedb_search_path = ['dir/containing/in/files/']
  1. Just use autodoc, autosummary or autopackagesummary as you would normally, and the .in files will automatically be processed.

Configuration

The following configuration options are supported:

  • interrogatedb_search_path: list of folders to search for .in files.
  • autodoc_interrogatedb_mangle_type_names: if True, converts type names in the way that interrogate's python-native back-end does by default.
  • autodoc_interrogatedb_mangle_type_names: if True, converts type names from snake-case to camel-case. False by default.
  • autodoc_interrogatedb_type_annotations: if True, shows argument and return types in function signatures using type hint syntax. True by default.
  • autodoc_interrogatedb_add_rtype: if True, adds an :rtype: directive to the bodies of docstrings with the return type. True by default.

License

This extension has been licensed under the terms of the Modified BSD License.

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_interrogatedb-2.0.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

sphinx_interrogatedb-2.0.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_interrogatedb-2.0.2.tar.gz.

File metadata

  • Download URL: sphinx_interrogatedb-2.0.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for sphinx_interrogatedb-2.0.2.tar.gz
Algorithm Hash digest
SHA256 f86d1a6f181885bc13af5bc2e000658c9a05f48b67c8ec330d94f1647a8fd1b9
MD5 e0385493be51faa9773fecaa603e7412
BLAKE2b-256 53c740388726fe0ad36c7df1efd09c489a91ef05eb2d0005fa2352b6df646a02

See more details on using hashes here.

File details

Details for the file sphinx_interrogatedb-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_interrogatedb-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07914b886790d1abd8e105dc51466afd578f0f1b006ee3264eb592214ebbeacd
MD5 f9b0394d1c7c21243b9df60a6982442b
BLAKE2b-256 eba9217da599d02e5be747f9f0d3237bacbd5a73131a8b6cc73867fc928dd908

See more details on using hashes here.

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