Skip to main content

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.

CI codecov Code style: black

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


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.30.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

uuid6-2021.11.30-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file uuid6-2021.11.30.tar.gz.

File metadata

  • Download URL: uuid6-2021.11.30.tar.gz
  • Upload date:
  • Size: 4.6 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.9

File hashes

Hashes for uuid6-2021.11.30.tar.gz
Algorithm Hash digest
SHA256 0f6ab88c96a9d78bed54c3100eb3d65afcad9e9c5ef613063cbbd93758942669
MD5 4c82f498e08a31dfc91f713d577cd958
BLAKE2b-256 0e9c292d191e7401e6d195f2f5e86d3ccdf733e96360a74ac21dcc73929adc45

See more details on using hashes here.

File details

Details for the file uuid6-2021.11.30-py3-none-any.whl.

File metadata

  • Download URL: uuid6-2021.11.30-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.9

File hashes

Hashes for uuid6-2021.11.30-py3-none-any.whl
Algorithm Hash digest
SHA256 0f79daf945aa36206e9da0b190b7ffd7f5444ebabdb5d4a7394541fef4d6e37f
MD5 702f946a52b7af6fb00e2e0f2eccb598
BLAKE2b-256 76fc15938204888f78d8b6419b4f4dd774b6c908ea325048e73cf9b8dbb8427a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page