resqpy.olio.uuidΒΆ

uuid.py: Thin wrapper around python uuid (universally unique identifier) module.

Functions

is_uuid

Returns boolean indicating whether uuid_obj seems to be a uuid.

matching_uuids

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

new_uuid

Returns a new uuid based on the time (to 100ns) & MAC address option of the iso standard.

string_from_uuid

Returns standard hexadecimal string for uuid; same as str(uuid_obj).

switch_off_test_mode

Subsequent calls to new_uid() will produce standard uuid values (default behaviour).

switch_on_test_mode

Causes subsequent calls to new_uid() to produce integer sequence starting from successor to seed.

uuid_as_bytes

Returns the uuid as a 16 byte bytes sequence; same as uuid_obj.bytes.

uuid_as_int

Returns the uuid as a 128 bit int; same as uuid_obj.int.

uuid_from_string

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

version_string

Returns an integer string rendering of the time element of the uuid.