:py:mod:`acquire.acquire.uploaders.plugin_registry` =================================================== .. py:module:: acquire.acquire.uploaders.plugin_registry Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: acquire.acquire.uploaders.plugin_registry.PluginRegistry Attributes ~~~~~~~~~~ .. autoapisummary:: acquire.acquire.uploaders.plugin_registry.T acquire.acquire.uploaders.plugin_registry.log acquire.acquire.uploaders.plugin_registry.UploaderRegistry .. py:data:: T .. py:data:: log .. py:class:: PluginRegistry(name: str, plugins: Optional[Iterable[tuple[str, T]]] = None) Bases: :py:obj:`Generic`\ [\ :py:obj:`T`\ ] Maintains a collection of plugins. Includes functionality to load plugins from classes defined in entrypoints. .. py:method:: register(name: str, plugin: T) -> None Registers a plugin to the plugins dictionary. :param name: The key of the dictionary. :param plugin: The plugin class to register. .. py:method:: remove(name: str) -> None Removes a plugin from the plugins dictionary. :param name: The key to remove. .. py:method:: items() -> ItemsView[str, T] Returns all the items inside the ``plugins`` dictionary .. py:method:: get(name: str) -> T .. py:method:: load_entrypoint_plugins(name: str) -> None Loads all classes defined in the entrypoints that use the specified ``name``. Loads the class loaded from the entrypoint with the form: ``=:`` as :param name: The entrypoint to search for. .. py:data:: UploaderRegistry An PluginRegistry instance that registers ``UploaderPlugin`` plugins