1 from importlib
import import_module
2 from typing
import Any, Callable, Dict
7 def lookup_object(object_path: str, package: str=
'mqtt_bridge') -> Any:
8 """ lookup object from a some.module:object_name specification. """ 9 module_name, obj_name = object_path.split(
":")
10 module = import_module(module_name, package)
11 obj = getattr(module, obj_name)
15 extract_values = message_conversion.extract_values
16 populate_instance = message_conversion.populate_instance
19 __all__ = [
'lookup_object',
'extract_values',
'populate_instance']