The UUID class

Constructor

UUID(value)

Constructs a UUID object with the given value. This may be:

  • an int value in the range 0 to 0xFFFFFFFF
  • a str value
  • another UUID object
  • any other value which can be converted to hex digits using str()

Instance Methods

getCommonName()

Returns string describing that UUID. If the UUID is one listed in Assigned Numbers this will be a human-readable name e.g. “Cycling Speed and Cadence”. Otherwise, it will be a hexadecimal string.

Properties

All the properties listed below are read-only.

binVal

The UUID expressed in binary (a str object on Python 2.x, bytes on 3.x).