utils

this module contains mosaic unrelated helper methods

class mosaic_orchestrator.utils.ListHandler[source]

List logging handler

emit(record)[source]

append a record to the log list

mosaic_orchestrator.utils.get_all_inputs(instance)[source]

returns a list of all inputs of an object

mosaic_orchestrator.utils.get_type_annotations(cls)[source]

return all type hints of a class

mosaic_orchestrator.utils.get_type_of_class_field(instance, name: str) Type[source]

return the type of class field with given name. If the field is not available an error will be raised.

mosaic_orchestrator.utils.is_function(value) bool[source]

check it is a function