Skip to main content

Provides sphinxcontrib.zopeext.autointerface for documenting Zope interfaces.

Project description

zopeext for Sphinx

Test badge PyPI badge gh: tag badge Coverage badge Documentation status badge Python versions badge

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

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

sphinxcontrib_zopeext-0.4.4.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

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

sphinxcontrib_zopeext-0.4.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib_zopeext-0.4.4.tar.gz.

File metadata

  • Download URL: sphinxcontrib_zopeext-0.4.4.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.2 CPython/3.11.13 Darwin/23.6.0

File hashes

Hashes for sphinxcontrib_zopeext-0.4.4.tar.gz
Algorithm Hash digest
SHA256 c4a354a4bc98972fad53395d62d2bad62db875988cd15d9b307b8be114e4d56a
MD5 5ef638674d108f66d5387c8ad542bea8
BLAKE2b-256 99d5ce0d62a7feed5d1d8df253895265e334854df7c9fa9fb9b7dc7a631ba754

See more details on using hashes here.

File details

Details for the file sphinxcontrib_zopeext-0.4.4-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_zopeext-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b9aebc834be6fc94fd60dacec160921484291d3932122b1c795df8fe59ef5961
MD5 2e3a5f409ef2f0ab239a8bbb01c02b24
BLAKE2b-256 2fc72119272fe5d84ad0f9eca5537c1fd5784cc55e60b25ebf374003d7e6f7a7

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