proxystore.utils.imports¶
Resolve imports by string paths.
get_object_path
¶
Get the fully qualified path of an object.
Example
Parameters:
-
obj(Any) –Object to get fully qualified path of.
Returns:
-
str–Fully qualified path of
obj.
Source code in proxystore/utils/imports.py
import_from_path
¶
Import object via its fully qualified path.
Example
Parameters:
-
path(str) –Fully qualified path of object to import.
Returns:
Raises:
-
ImportError–If an object at the
pathis not found.