Profile¶
import kloch
import kloch.filesyntax
- class kloch.EnvironmentProfile(identifier: str, version: str, inherit: EnvironmentProfile | None, launchers: LauncherSerializedDict)¶
An environment is a collection of parameters required to start a pre-defined launcher.
Environment can inherit each other by specifying a inherit attribute. The inheritance only merge the
launchers
attribute of the 2.- classmethod from_dict(serialized: Dict) EnvironmentProfile ¶
Generate a profile instance from a serialized dict object.
No type checking is performed and the user is reponsible for the correct type being stored in the dict.
- get_merged_profile()¶
Resolve the inheritance the profile might have over another profile.
- Returns:
a new instance.
- to_dict() Dict[str, Any] ¶
Convert a profile instance to a serialized dict object.