Provides a convenient way to expose an extensible API
35.97 KB
built 2026-10-17 10:17:18 GMT
Description
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.
Dependencies
11 totalRequires6
- python(abi) = 3.15
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PartialHardlinkSets) <= 4.0.4-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides5
- python-interface-meta = 1.3.0-19.fc45
- python3-interface-meta = 1.3.0-19.fc45
- python3.15-interface-meta = 1.3.0-19.fc45
- python3.15dist(interface-meta) = 1.3
- python3dist(interface-meta) = 1.3
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
44
Files 1–44 of 44
Component of
buildroots that installed this RPMNo Buildroots
