os.uuid

The os.uuid function returns a Universally Unique Identifier.

id = os.uuid()

Parameters

None.

Return Value

A new UUID, a string value with the format 74CFC033-FA4D-4B1E-A871-7DC48FA36769.