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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uuid6-2021.11.29-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uuid6-2021.11.29.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.9

File hashes

Hashes for uuid6-2021.11.29.tar.gz
Algorithm Hash digest
SHA256 c3c27ad53081436ed56b0b0003b13ce95f54c76ec4624d942e84d9fbde1f2dca
MD5 c6178ad80af1253144c2ab531d66c19b
BLAKE2b-256 e9f54e6be6e3a4585a8963f5288ad85ee23514430b1952f9f388fbfc982c9ed5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uuid6-2021.11.29-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.29-py3-none-any.whl
Algorithm Hash digest
SHA256 b8cdd09633442b74aea6e45e9e4703cd37a8debd331b7a6697dc5d40e97dbae8
MD5 556fea602b9a7acff2e56b03d93344ec
BLAKE2b-256 c84f98826dcd13bddecca8ca66c2e93db4f0ff22e0ba302639e4fc021afc8399

See more details on using hashes here.

Supported by

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