opyenxes.id package¶
Submodules¶
opyenxes.id.XID module¶
-
class
opyenxes.id.XID.
XID
(uuid_arg=None)[source]¶ Bases:
object
Implements a unique ID based on UUID.
Parameters: uuid_arg (uuid.UUID) – The UUID implementing XID uniqueness. -
clone
()[source]¶ Creates and returns a copy of this object.
Returns: A clone of this instance. Return type: XID
-
compare_to
(other)[source]¶ Helper method to compares this object with the specified object for order.
Parameters: other (XID) – the Object to be compared. Returns: A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. Return type: int
-
get_uuid
()[source]¶ Retrieves the uuid value of this object.
Returns: The uuid attribute. Return type: uuid.UUID
-