import_class#

caput.util.importtools.import_class(class_path: str) Any[source]#

Import class dynamically from a string.

Parameters:
class_pathstr

Fully qualified path to the class. If only a single component, look up in the globals.

Returns:
imported_classAny

The class we want to load.