resqpy.olio.uuid.matching_uuids

resqpy.olio.uuid.matching_uuids(uuid_a, uuid_b)[source]

Returns True if the 2 uuid objects are for the same id; False otherwise.

Parameters:
  • uuid_a (uuid.UUID objects) – the two uuids to be compared

  • uuid_b (uuid.UUID objects) – the two uuids to be compared

Returns:

boolean – True if the two uuids are the same; False otherwise

Note

this function is resilient to uuids being passed in hexadecimal string format, or int