(self, config: "Config")
return self._plugins
Autoload this registry with plugins from the 'lightbus_plugins' entrypoint
Autoload this registry with plugins from the 'lightbus_plugins' entrypoint
Autoload this registry with plugins from the lightbus_plugins entrypoint
def autoload_plugins(self, config: "Config"):
        """Autoload this registry with plugins from the 'lightbus_plugins' entrypoint"""
        for name, cls in find_plugins().items():
            plugin_config = config.plugin(name)
            if plugin_config.enabled:
                self._plugins.append(
                    instantiate_plugin(config=config, plugin_config=plugin_config, cls=cls)
                )

        return self._plugins
def autoload_plugins ( self , config : "Config" ) : for name , cls in find_plugins ( ) . items ( ) : plugin_config = config . plugin ( name ) if plugin_config . enabled : self . _plugins . append ( instantiate_plugin ( config = config , plugin_config = plugin_config , cls = cls ) ) return self . _plugins