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:
- Install the module using pip.
pip install sphinx-interrogatedb
- Enable it in
conf.py.
extensions = ['sphinx.ext.autodoc', 'sphinx_interrogatedb']
- Configure the search path for interrogatedb files.
interrogatedb_search_path = ['dir/containing/in/files/']
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_interrogatedb-2.0.1.tar.gz.
File metadata
- Download URL: sphinx_interrogatedb-2.0.1.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c307ec08feb9f80aa153a05362acfd6718f26c378801234a35b4b8d76df91bbb
|
|
| MD5 |
a700e8be3aa0085143e6db8b6b8d0edc
|
|
| BLAKE2b-256 |
a67924f35a4ad63eae18d096ca0f27a93e81ca37e3a1d97ab46162f75361104e
|
File details
Details for the file sphinx_interrogatedb-2.0.1-py3-none-any.whl.
File metadata
- Download URL: sphinx_interrogatedb-2.0.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc7f8b39bc1b7fdb3023390e1b40609d22d4be964715524cad3a3ef48d23b7d7
|
|
| MD5 |
b20257525463f375eee7ee702a689b82
|
|
| BLAKE2b-256 |
fb7df21dcae74f2b6a2883276aacc70a973322170fa9dd8307ce2bb48aeedb9f
|