pymasep.app =========== .. py:module:: pymasep.app Classes ------- .. autoapisummary:: pymasep.app.App Module Contents --------------- .. py:class:: App(interface_class_, root_path = '.', config_path = 'config', launch = LAUNCH_ALL_LOCAL, remote_engine_host = None, remote_engine_port = None) Main application class. :param interface_class_: class of the interface :param root_path: path of the application root directory. Used for testing and packaging :param config_path: path of the config files, relative to the root_path :param launch: Type of launch (local, interface only, server only) :param remote_engine_host: engine host for remote interface. Maybe None for local and server only :param remote_engine_port: engine port for remote interface. Maybe None for local and server only .. py:attribute:: LAUNCH_ALL_LOCAL :value: 0 Launch threaded server and interface .. py:attribute:: LAUNCH_INTERFACE :value: 1 Launch only interface (remote) .. py:attribute:: LAUNCH_SERVER_STANDALONE :value: 2 Launch only server (remote) .. py:attribute:: engine :value: None engine sub application .. py:attribute:: interface :value: None interface sub application .. py:attribute:: queues queues used to communicate between engine and interface .. py:attribute:: interface_queue_id :value: 0 .. py:attribute:: engine_queue_id :value: 0 .. py:attribute:: max_connection :value: 10 .. py:attribute:: root_path root path of the application .. py:attribute:: config config of the application .. py:method:: load_config(config_path) :staticmethod: Load config from a path. Load app.yaml file. :param config_path: Path of the configuration files :return: OmegaConf Configuration .. py:method:: run() Run the application. Launch Engine, Interface or both. Wait for termination.