uuid:
The uuid module is part of Python's standard library, meaning it comes pre-installed with Python and does not require additional installation. It provides tools for generating universally unique identifiers (UUIDs).
Key Features: The uuid module supports several versions of UUIDs:
UUID1: Based on the host's MAC address and the current timestamp.
uuid.uuid1()
UUID3: Deterministic UUID based on a namespace and a name using MD5 hashing.
uuid.uuid3(namespace, name)
UUID4: Randomly generated UUID.
uuid.uuid4()
UUID5: Deterministic UUID based on a namespace and a name using SHA-1 hashing.
uuid.uuid5(namespace, name)