Skip to main content

A time-based 64-bit UUID generator

Project description

A time-based 64-bit UUID generator. The basic idea behind is to provide a universally unique identifier that satisfies the following conditions:

Installation

pip install temporaluuid64

Technical Details

The time-based UUID consists of two components: a timestamp and a node ID.

+----------------------+--------------------+
|  48-bit (timestamp)  |  16-bit (node_id)  |
+----------------------+--------------------+

Sort entities in chronological order

Entities given their UUIDs must be able to be sorted in chronological order without relying on additional data fields. This is why the timestamp bits occupy the most significant bits.

Suitable for distributed systems

Even if multiple identifiers are created at the exactly same time, given a particular granularity (generally a millisecond), the UUID generator must be able to provide a way to avoid collisions.

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

temporaluuid64-0.2.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

temporaluuid64-0.2.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file temporaluuid64-0.2.0.tar.gz.

File metadata

  • Download URL: temporaluuid64-0.2.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for temporaluuid64-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7c543bdc3563d0093b30eb9f465dc347486ef3e24b255123033fc2ac4ce8f8f1
MD5 e9589f375c261bc978244d5defe7081d
BLAKE2b-256 a6ec714c472e2f048eb7cb912585126f833bad85aaa7acdcc6129a1fdf65f13c

See more details on using hashes here.

File details

Details for the file temporaluuid64-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: temporaluuid64-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for temporaluuid64-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24b88114175f16329a3f5a0e76e8ab32327a500992eed82c8250fd82e2aa53ab
MD5 c82f83952c5a1a72cad4df6777c5c473
BLAKE2b-256 353d4315d9f5fd1aa21b01cfccad0a9a8062d4834c230c5db7ad6e532235b30f

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