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-0.0.0.dev0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uuid6-0.0.0.dev0.tar.gz.
File metadata
- Download URL: uuid6-0.0.0.dev0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8708ae63640754e3c3f6c4e2de63a84d2b306dd0bca64ca5a999a7ddfb19ce2e
|
|
| MD5 |
e2093250d6f1cfedf4ae8fb5d8619ee8
|
|
| BLAKE2b-256 |
b689d839f430a22e4f05b537d599999808d9b122e9d18688411f3f81a88598cb
|
File details
Details for the file uuid6-0.0.0.dev0-py3-none-any.whl.
File metadata
- Download URL: uuid6-0.0.0.dev0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a35fdaa86d64848ec83e76ea01c6fb476a84a11d5a66344ace45dece842804d
|
|
| MD5 |
3e15758768ece0938a832faa5411db8b
|
|
| BLAKE2b-256 |
d1266681a9d00b73afa70eae5c5ccfa99b3c92055e629c91f67f50efe1c2c486
|