is_valid_uuid

is_valid_uuid(value)[source]

Checks whether the given value is a UUID.

Parameters:

value (Any) – The value to check.

Returns:

True if the input is a valid UUID and false otherwise.

Return type:

bool