plugitin package

Submodules

plugitin.aggregate_plugin module

class plugitin.aggregate_plugin.AggregatePlugin[source]

Bases: plugitin.plugin.Plugin

execute(method_name, *args, **kwargs)[source]

plugitin.chain_plugin module

class plugitin.chain_plugin.ChainPlugin[source]

Bases: plugitin.plugin.Plugin

execute(method_name, *args, **kwargs)[source]

plugitin.plugin module

class plugitin.plugin.Plugin[source]

Bases: abc.ABC

classmethod deregister(plugin)[source]
abstract execute(method_name, *args, **kwargs)[source]
handlers: List[plugitin.spec.PluginSpec] = []
classmethod register(plugin)[source]

Register a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.

Return type

RegisterContext

class plugitin.plugin.RegisterContext(plugin, spec)[source]

Bases: object

__init__(plugin, spec)[source]

Initialize self. See help(type(self)) for accurate signature.

plugitin.pyfs module

plugitin.spec module

class plugitin.spec.PluginSpec[source]

Bases: object

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

name: str = ''