server.get_ome_plugins

For each plugin.py file in server/plugins/* directory read attributes such as mimetypes or newsgroups of each class that is a subclass of OMEPlugin.

Attributes

here

plugins_dir

Functions

_load_plugin(plugin_name) → server.plugins.ome_plugin.OMEPlugin

load_plugin() → server.plugins.ome_plugin.OMEPlugin

get_ome_plugins_from_path(file_path) → collections.abc.Iterator[type[server.plugins.ome_plugin.OMEPlugin]]

get_ome_plugins() → collections.abc.Iterator[type[server.plugins.ome_plugin.OMEPlugin]]

get_newsgroups_from_plugins() → dict[str, str]

Return the content of the newsgroups attribute of all OMEPlugins.

Module Contents

server.get_ome_plugins.here
server.get_ome_plugins.plugins_dir
server.get_ome_plugins._load_plugin(plugin_name: str) → server.plugins.ome_plugin.OMEPlugin
server.get_ome_plugins.load_plugin() → server.plugins.ome_plugin.OMEPlugin
server.get_ome_plugins.get_ome_plugins_from_path(file_path: pathlib.Path) → collections.abc.Iterator[type[server.plugins.ome_plugin.OMEPlugin]]
server.get_ome_plugins.get_ome_plugins() → collections.abc.Iterator[type[server.plugins.ome_plugin.OMEPlugin]]
server.get_ome_plugins.get_newsgroups_from_plugins() → dict[str, str]

Return the content of the newsgroups attribute of all OMEPlugins.