resqpy.olio.uuid.uuid_from_string

resqpy.olio.uuid.uuid_from_string(uuid_str)[source]

Returns a uuid object for the given uuid string; hyphens are ignored.

Parameters:

uuid_str (string) – the hexadecimal representation of the 128 bit uuid integer; hyphens are ignored

Returns:

uuid.UUID object

Notes

if a uuid.UUID object is passed by accident, it is returned; if the string starts with an underscore, the underscore is skipped (to cater for a fesapi quirk); any tail beyond the uuid string is ignored