bec_widgets.utils.bec_plugin_helper#

Attributes#

Functions#

_all_widgets_from_all_submods(...)

Recursively load submodules, find any BECWidgets, and return them all as a flat dict.

_get_widgets_from_module(...)

Find any BECWidget subclasses in the given module and return them with their info.

_loaded_submodules_from_specs(...)

Load all submodules from the given specs.

_submodule_by_name(module, name)

_submodule_specs(...)

Return specs for all submodules of the given module.

get_all_plugin_widgets(...)

If there is a plugin repository installed, load all widgets from it.

get_plugin_client_module(→ types.ModuleType | None)

If there is a plugin repository installed, return the client module.

user_widget_plugin(→ types.ModuleType | None)

Module Contents#

_all_widgets_from_all_submods(module) bec_widgets.utils.plugin_utils.BECClassContainer#

Recursively load submodules, find any BECWidgets, and return them all as a flat dict.

_get_widgets_from_module(module: types.ModuleType) bec_widgets.utils.plugin_utils.BECClassContainer#

Find any BECWidget subclasses in the given module and return them with their info.

_loaded_submodules_from_specs(submodule_specs: tuple[importlib.machinery.ModuleSpec | None, Ellipsis]) Generator[types.ModuleType, None, None]#

Load all submodules from the given specs.

_submodule_by_name(module: types.ModuleType, name: str)#
_submodule_specs(module: types.ModuleType) tuple[importlib.machinery.ModuleSpec | None, Ellipsis]#

Return specs for all submodules of the given module.

get_all_plugin_widgets() bec_widgets.utils.plugin_utils.BECClassContainer#

If there is a plugin repository installed, load all widgets from it.

get_plugin_client_module() types.ModuleType | None#

If there is a plugin repository installed, return the client module.

user_widget_plugin() types.ModuleType | None#
client#