proxystore.utils.imports¶
Resolve imports by string paths.
get_class_path() ¶
Get the fully qualified path of a type.
Example
Parameters:
Returns:
-
str
–Fully qualified path of
cls
.
Source code in proxystore/utils/imports.py
import_class() ¶
Import class via its fully qualified path.
Example
Parameters:
-
path
(str
) –Fully qualified path of class to import.
Returns:
Raises:
-
ImportError
–If a class at the
path
is not found.