Skip to main content

Sphinx extension to enhance autodoc for interrogated modules

Project description


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).


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


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.


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.

Files for sphinx-interrogatedb, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size sphinx_interrogatedb-1.1.1-py3-none-any.whl (10.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page