Skip to main content

load_backend

Loads and instantiates a backend class from a given string path using dynamic importing.

def load_backend(
path: string
) - > object

Dynamically imports and instantiates a backend class or function from a dot-notation string path.

Parameters

NameTypeDescription
pathstringThe full python dot-notation path to the backend module and class or function to be loaded.

Returns

TypeDescription
objectAn instance of the backend class or the result of the function call specified by the path.