Helpers

class LabelValidator[source]
static validate(labels: dict[str, str]) bool[source]

Validates Labels. If you want to know which key/value pair of the dict is not correctly formatted use validate_verbose().

Returns:

bool

static validate_verbose(labels: dict[str, str]) tuple[bool, str][source]

Validates Labels and returns the corresponding error message if something is wrong. Returns True, <empty string> if everything is fine.

Returns:

bool, str