Fedora Packages

python3-interface-meta Subpackage of python-interface-meta

Provides a convenient way to expose an extensible API

interface_meta provides a convenient way to expose an extensible API with enforced method signatures and consistent documentation. This library has been extracted (with some modifications) from omniduct, a library also principally written by this author, where it was central to the extensible plugin architecture. It places an emphasis on the functionality required to create a well-documented extensible plugin system, whereby the act of subclassing is sufficient to register the plugin and ensure compliance to the parent API. As such, this library boasts the following features: - All subclasses of an interface must conform to the parent's API. - Hierarchical runtime property existence and method signature checking. Methods are permitted to add additional optional arguments, but otherwise must conform to the API of their parent class (which themselves may have extended the API of the interface). - Subclass definition time hooks (e.g. for registration of subclasses into a library of plugins, etc). - Optional requirement for methods in subclasses to explicity decorate methods with an override decorator when replacing methods on an interface, making it clearer as to when a class is introducing new methods versus replacing those that form the part of the interface API. - Generation of clear docstrings on implementations that stitches together the base interface documentation with any downstream extensions and quirks. - Support for extracting the quirks documentation for a method from other method docstrings, in the event that subclass implementations are done in an internal method. - Compatibility with ABCMeta from the standard library.

Releases Overview

Release Stable Testing
Fedora Rawhide 1.3.0-6.fc38 -
Fedora 38 1.3.0-6.fc38 -
Fedora 37 1.3.0-5.fc37 -
File a new bug report »
Package Info

You can contact the maintainers of this package via email at python-interface-meta dash maintainers at fedoraproject dot org.

Sources on Pagure