akvo.rsr.models.tree.helpers module

akvo.rsr.models.tree.helpers.label_to_uuid(string: str) UUID[source]

Converts a label to a UUID str

Labels have underscores instead of the dashes that UUIDs have,

so those have to be reconverted

akvo.rsr.models.tree.helpers.uuid_to_label(string: str | UUID) str[source]

Converts a UUID to a valid ltree label

Labels may not have dashes so they are converted to underscores