Name : python3-interface-meta
| |
Version : 1.3.0
| Vendor : Fedora Project
|
Release : 9.fc40
| Date : 2024-01-26 06:35:04
|
Group : Unspecified
| Source RPM : python-interface-meta-1.3.0-9.fc40.src.rpm
|
Size : 0.08 MB
| |
Packager : Fedora Project
| |
Summary : Provides a convenient way to expose an extensible API
|
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.
|
RPM found in directory: /vol/rzm3/linux-fedora-buffet/fedora-secondary/releases/40/Everything/ppc64le/os/Packages/p |