liblaf.cherries
¶
Modules:
-
bundle– -
config– -
core– -
meta– -
plugins– -
profiles–
Classes:
-
BaseConfig– -
Run–
Functions:
-
asset– -
end– -
get_other– -
get_others– -
get_param– -
get_params– -
input– -
log_asset– -
log_input– -
log_metric– -
log_metrics– -
log_other– -
log_others– -
log_output– -
log_param– -
log_params– -
log_temp– -
main– -
output– -
set_step– -
start– -
temp–
Attributes:
-
__version__(str) – -
__version_tuple__(tuple[int | str, ...]) – -
run(Run) –
__version_tuple__
module-attribute
¶
BaseConfig
¶
Bases: BaseSettings
flowchart TD
liblaf.cherries.BaseConfig[BaseConfig]
click liblaf.cherries.BaseConfig href "" "liblaf.cherries.BaseConfig"
Run
¶
Bases: PluginManager
flowchart TD
liblaf.cherries.Run[Run]
liblaf.cherries.core._plugin_manager.PluginManager[PluginManager]
liblaf.cherries.core._plugin_manager.PluginManager --> liblaf.cherries.Run
click liblaf.cherries.Run href "" "liblaf.cherries.Run"
click liblaf.cherries.core._plugin_manager.PluginManager href "" "liblaf.cherries.core._plugin_manager.PluginManager"
Parameters:
-
plugins(dict[PluginId, Plugin], default:<class 'dict'>) –dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Methods:
-
asset– -
delegate– -
end– -
get_other– -
get_others– -
get_param– -
get_params– -
get_step– -
get_url– -
input– -
log_asset– -
log_input– -
log_metric– -
log_metrics– -
log_other– -
log_others– -
log_output– -
log_param– -
log_params– -
log_temp– -
output– -
register– -
set_step– -
start– -
temp–
Attributes:
-
data_dir(Path) – -
entrypoint(Path) – -
exp_dir(Path) – -
exp_name(str) – -
fig_dir(Path) – -
logs_dir(Path) – -
plugins(dict[PluginId, Plugin]) – -
project_dir(Path) – -
project_name(str) – -
start_time(datetime) – -
step(int | None) – -
temp_dir(Path) – -
url(str) –
plugins
class-attribute
instance-attribute
¶
asset
¶
delegate
¶
delegate(
method: MethodName,
args: Sequence[Any] = (),
kwargs: Mapping[str, Any] = {},
*,
first_result: bool = False,
) -> Any
Source code in src/liblaf/cherries/core/_plugin_manager.py
end
¶
Source code in src/liblaf/cherries/core/_run.py
get_other
¶
get_others
¶
get_param
¶
get_params
¶
input
¶
log_asset
¶
log_input
¶
log_metric
¶
log_metrics
¶
log_other
¶
log_others
¶
log_output
¶
log_param
¶
log_params
¶
log_temp
¶
output
¶
register
¶
start
¶
Source code in src/liblaf/cherries/core/_run.py
temp
¶
end
¶
main
¶
main[T](
main: Callable[..., T],
*,
profile: ProfileLike | None = None,
) -> T