ID operators¶
commons.id_operators
¶
Ids for new objects.
Functions:
| Name | Description |
|---|---|
new_id |
Return a new id: a time-ordered UUIDv7 as a 36-character string. |
new_id
¶
Return a new id: a time-ordered UUIDv7 as a 36-character string.
Ids created one after another in a process compare in creation order, so as primary keys they are appended to the index instead of landing anywhere in it. They reveal when they were created; don't use them as secrets.
Returns:
| Type | Description |
|---|---|
str
|
The id, e.g. |