README
liblaf.cherries.core.others
¶
Classes:
-
OtherPluginProtocol–Hook surface for plugins that receive miscellaneous run metadata.
-
OthersManager–Store miscellaneous run metadata and mirror it to plugins.
OtherPluginProtocol
¶
Bases: Protocol
flowchart TD
liblaf.cherries.core.others.OtherPluginProtocol[OtherPluginProtocol]
click liblaf.cherries.core.others.OtherPluginProtocol href "" "liblaf.cherries.core.others.OtherPluginProtocol"
Hook surface for plugins that receive miscellaneous run metadata.
Methods:
-
log_other–Record one flattened metadata value.
-
log_others–Record multiple already-flattened metadata values.
log_other
¶
OthersManager
¶
Store miscellaneous run metadata and mirror it to plugins.
Metadata is stored internally with slash-delimited keys and returned as a nested dictionary for summaries.
Parameters:
-
plugins(OtherPluginProtocol) –Plugin delegate that receives metadata events.
-
others(dict[str, Any], 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:
-
get_other–Return one flattened metadata value.
-
get_others–Return metadata as a nested dictionary.
-
log_other–Store and publish one metadata value.
-
log_others–Store and publish multiple metadata values.
Attributes:
-
others(dict[str, Any]) –Flattened metadata values by slash-delimited name.
-
plugins(OtherPluginProtocol) –Plugin delegate that receives metadata events.
others
class-attribute
instance-attribute
¶
Flattened metadata values by slash-delimited name.
plugins
instance-attribute
¶
plugins: OtherPluginProtocol
Plugin delegate that receives metadata events.
get_other
¶
get_others
¶
log_other
¶
log_others
¶
Store and publish multiple metadata values.
Nested mappings are flattened before storage and plugin delegation.