Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for temporaluuid64, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size temporaluuid64-0.1.3.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page