New time-based UUID formats which are suited for use as a database key
Project description
uuid6
New time-based UUID formats which are suited for use as a database key.
This module extends immutable UUID objects (the UUID class) with the functions uuid6()
and uuid7()
from the IETF draft.
Install
pip install uuid6
Usage
from uuid6 import uuid6, uuid7
my_uuid = uuid6()
print(my_uuid)
assert my_uuid < uuid6()
my_uuid = uuid7()
print(my_uuid)
assert my_uuid < uuid7()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uuid6-2021.11.29.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for uuid6-2021.11.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8cdd09633442b74aea6e45e9e4703cd37a8debd331b7a6697dc5d40e97dbae8 |
|
MD5 | 556fea602b9a7acff2e56b03d93344ec |
|
BLAKE2b-256 | c84f98826dcd13bddecca8ca66c2e93db4f0ff22e0ba302639e4fc021afc8399 |