uuid.uuid1() vs uuid.uuid3()
uuid.uuid1() and uuid.uuid3() are both Python UUID Module APIs, and choosing between them is a common point of confusion. This page compares their syntax, parameters, return values, and typical use cases so you can pick the right one. uuid.uuid1(): Generates a time-based UUID (version 1) using host MAC address and timestamp. Its syntax is uuid.uuid1(node=None, clock_seq=None), and it returns uUID object uuid.uuid3(): Generates a UUID v3 from a namespace UUID and a name (MD5 hash). Its syntax is uuid.uuid3(namespace, name), and it returns uUID object Example of uuid.uuid1(): uuid.uuid1() # UUID with timestamp and MAC. Example of uuid.uuid3(): uuid.uuid3(uuid.NAMESPACE_DNS, "example.com"). Read the full references for uuid.uuid1() and uuid.uuid3() to see parameters, edge cases, and example code side by side. Other UUID Module APIs worth comparing: uuid.uuid4(), uuid.uuid5(), uuid.UUID. Both belong to the UUID Module category in the Python Reference documentation. Try both in the Python playground to see the behavioral difference live.