labthings_fastapi.utilities.object_reference_to_object

Module Contents

Functions

object_reference_to_object

Convert a string reference to an object

API

labthings_fastapi.utilities.object_reference_to_object.object_reference_to_object(object_reference: str)

Convert a string reference to an object

This is taken from: https://packaging.python.org/en/latest/specifications/entry-points/

The format of the string is module_name:qualname where qualname is the fully qualified name of the object within the module. This is the same format used by entrypointsinsetup.py` files.