ubii.cli.main module¶
- ubii.cli.main.import_name(name: str)¶
Utility method, imports the module where the name is located
Example:
client_type = import_name('ubii.framework.client.UbiiClient')
- Parameters:
name – full name, e.g. ‘the.module.attribute’
- Returns:
the attribute with specified name, from the imported module
- ubii.cli.main.log_to_folder(log_config, folder='logs/')¶
Changes the log config so that all logs are written to the specified folder
- Parameters:
folder – path to folder that should be prefixed
log_config – configuration dictionary in
logging.config.dictConfig()format
- Returns:
changed dictionary
- ubii.cli.main.parse_args()¶
Enhanced argument parsing which allows to also load installed processing modules and pass arguments to them when they are loaded by the client
- ubii.cli.main.info_log_client()¶
Example for tutorial to create a simple client that prints messages received in the info topics, and continuously publishes a value to a custom info topic. See Client Example