Provides sphinxcontrib.zopeext.autointerface for documenting Zope interfaces.
Project Links
Meta
Author: Michael McNeil Forbes
Requires Python: >=3.7
Classifiers
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
License
- OSI Approved :: BSD License
Development Status
- 4 - Beta
Framework
- Sphinx :: Extension
- Zope
Topic
- Documentation
- Documentation :: Sphinx
zopeext for Sphinx
This extension provides an autointerface directive for Zope interfaces.
Installation
python3 -m pip install sphinxcontrib-zopeext
python3 -m pip install sphinxcontrib-zopeext[test,doc]
This requires Sphinx and zope.interface. The second form includes the test
and doc extras needed to run the tests and/or build the documentation.
Usage
In the build configuration file (the conf.py in your Sphinx
documentation directory) add sphinxcontrib.zopeext.autointerface to your
extensions list:
# conf.py
...
extensions = [..., 'sphinxcontrib.zopeext.autointerface', ...]
Then, in your documentation, use autointerface as you would use autoclass. You can
refer to the interface with the :py:interface: role example.IMyInterface as you
would use the :py:class: role to refer to the implementation
example.MyImplementation:
.. automodule:: example
:show-inheritance:
:inherited-members:
One can also limit which members are displayed, just as you would with .. autoclass:
.. autointerface:: example.IMyInterface
:members: x, equals
.. autoclass:: example.MyImplementation
:members: x, equals
0.4.4
Dec 26, 2025
0.4.3
Jan 07, 2024
0.4.2
Mar 20, 2023
0.4.1
Mar 20, 2023
0.4.0
Mar 18, 2023
0.3.3
Sep 04, 2022
0.3.2
Jan 05, 2022
0.3.1
Jan 05, 2022
0.3.0
Dec 22, 2021
0.2.4
Mar 16, 2020
0.2.3
Nov 01, 2019
0.2.1
May 03, 2013
0.2
Jul 25, 2012