Skip to main content

A python implementation of Ordered UUID.

Project description

python-ordered-uuid

Overrides Python’s UUID class to implement “Ordered UUID”.

For more info about “Ordered UUID” see: https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/

Supports both Python 2 & 3.

Usage

from ordered_uuid import OrderedUUID

hex_string = 'cdef89ab012345670123456789abcdef'
OrderedUUID(hex_string)

some_bytes = b'\xcd\xef\x89\xab\x01\x23\x45\x67\x01\x23\x45\x67\x89\xab\xcd\xef'
OrderedUUID(bytes=some_bytes)

fields = (0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x567812345678)
OrderedUUID(fields=fields)

Installation

pip install python-ordered-uuid

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

python-ordered-uuid-1.3.5.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file python-ordered-uuid-1.3.5.tar.gz.

File metadata

File hashes

Hashes for python-ordered-uuid-1.3.5.tar.gz
Algorithm Hash digest
SHA256 0959f4cd3007b0df18e221ed492bca60bcf4582fcc53a191b590bf17dd5ec293
MD5 6aba43138c5adae6628eb8b3b38cdf05
BLAKE2b-256 31155cbae3315153a8cbd09fa65d1af2dcda6269caeda727caafbd0e0cb98bec

See more details on using hashes here.

Supported by

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