parse_uuid

parse_uuid(value)[source]

Parses strings expected to be UUIDs.

Parameters:

value (Any) – The input value.

Returns:

The input value. Works as an identity function for valid input.

Return type:

str

Raises:

ValueError – If the input value is not a valid UUID.