How to use the kervi.plugin.kervi_plugin.KerviPlugin.__init__ function in kervi

To help you get started, we’ve selected a few kervi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kervi / kervi / kervi / kervi / plugin / routing / routing_plugin.py View on Github external
def __init__(self, name, config, manager):
        KerviPlugin.__init__(self, name, config, manager)
        self._router_name = ""
        self._spine = spine.Spine()
        self._spine.register_event_handler("appReady", self._app_ready)

        self._spine.register_event_handler("moduleReady", self._module_ready)
        self._spine.register_event_handler("appReady", self._app_ready)
        self._routes_in = []
        self._routes_out = []
        self._ids = []
        self._prepare_thread = None
        self._route_table_ready = False
        self._router_id = uuid.uuid4().hex
        self._connected = False
        self._connection_id = None
        self._connection_type = None
        self._connections = {}
github kervi / kervi / kervi / kervi / plugin / ipc / websocket / __init__.py View on Github external
def __init__(self, config, manager):
        KerviPlugin.__init__(self, "WSIPC", config, manager)
        from kervi.plugin.ipc.websocket.socket_spine import SocketSpine
        self._socket_spine = SocketSpine(self.global_config)
        self.spine.register_command_handler("startWebSocket", self._start_socket)
        self.spine.trigger_event(
            "websocketReady", 
            None,
            {
github kervi / kervi / kervi / kervi / plugin / messaging / message_plugin.py View on Github external
def __init__(self, name, configuration, manager):
        KerviPlugin.__init__(self, name, configuration, manager)
github kervi / kervi / kervi / kervi / plugin / webserver / __init__.py View on Github external
def __init__(self, name, config, manager):
        KerviPlugin.__init__(self, name, config, manager)
github kervi / kervi / kervi / kervi / plugin / storage / storage_plugin.py View on Github external
def __init__(self, name, config, manager):
        KerviPlugin.__init__(self, name, config, manager)
github kervi / kervi / kervi / kervi / plugin / io / files / __init__.py View on Github external
def __init__(self, name, configuration, manager):
        KerviPlugin.__init__(self, name, configuration, manager)
        self._root = self.plugin_config.root
        self.spine.register_query_handler("files_get_dir", self.get_dir)
        self.spine.register_query_handler("files_get_file", self.get_file)
        self.spine.register_command_handler("files_save_file", self.save_file)
        self.spine.register_query_handler("files_get_thumbnail", self.get_thumbnail)
        self.spine.register_command_handler("files_open_file", self.open_file)
        #self.spine.register_command_handler("files_write_file", self.write_file)
        #self.spine.register_command_handler("files_close_file", self.close_file)

        self._open_files = {}