load_codelet

ipkiss3.all.load_codelet(codelet_path)

Load a codelet class from a given file path.

This function takes a path to a python file containing a subclass of Codelet, loads the module from the file, and returns the subclass.

Parameters:
codelet_pathstr | Path

The path to the python file that contains the Codelet subclass. This can be either a string or a Path object.

Returns:
Type[Codelet]

The subclass of Codelet found in the provided file.