schemas
labelling
The LabelDiver supports templating use cases for any Labelled object, by presenting the labels as a graph of objects that may be accessed by attribute. For example:
Methods:
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
prefect.events.schemas.labellingLabelDiver diver = LabelDiver({
'hello.world': 'foo',
'hello.world.again': 'bar'
})
assert str(diver.hello.world) == 'foo'
assert str(diver.hello.world.again) == 'bar'
Labelled as_label_value_array as_label_value_array(self) -> List[Dict[str, str]]
get get(self, label: str, default: Optional[str] = None) -> Optional[str]
has_all_labels has_all_labels(self, labels: Dict[str, str]) -> bool
items items(self) -> Iterable[Tuple[str, str]]
keys keys(self) -> Iterable[str]
labels labels(self) -> LabelDiver
Was this page helpful?