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

Uploaded Source

File details

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

File metadata

  • Download URL: temporaluuid64-0.1.3.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for temporaluuid64-0.1.3.tar.gz
Algorithm Hash digest
SHA256 27e22d0c5224c42fafdda03b3f9e49f9da461475498f3feae1c22f5ad18f5db0
MD5 05271216968fa2109b1b2fb889e08811
BLAKE2b-256 08f992c36665a10423e760352a584597557e8303255d30f882036dd672dd3d27

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