betty.plugin.proxy module

Provide tools for proxying plugin management to other tools.

final class betty.plugin.proxy.ProxyPluginRepository[source]

Bases: PluginRepository[_PluginT], Generic[_PluginT]

Expose multiple other plugin repositories as one unified repository.

Parameters:

upstreams (betty.plugin.PluginRepository[typing.TypeVar(_PluginT, bound= betty.plugin.Plugin)])

__init__(*upstreams: betty.plugin.PluginRepository[betty.plugin.proxy._PluginT])[source]
Parameters:

upstreams (betty.plugin.PluginRepository[typing.TypeVar(_PluginT, bound= betty.plugin.Plugin)])

async get(plugin_id: str) type[betty.plugin.proxy._PluginT][source]

Get a single plugin by its ID.

Raises:

PluginNotFound – if no plugin can be found for the given ID.

Parameters:

plugin_id (str)

Return type:

type[typing.TypeVar(_PluginT, bound= betty.plugin.Plugin)]