# Python Druuid
A python implementation of a date-realtive (and relatively universally unique) UUID generator. It is based on the [original][1] implementation in Ruby.
## Concept
Druuid’s are a 64 bit identifiers which are sortable since they are time based. A druuid is compromised of 2 blocks: * 41-bit timestamp in miliseconds since epoch * 23 random bits
For example, a druuid generated on 2016-05-16 might look like 12276209757600130011.
In binary: 10101010010111011101101110111011011111011 11100001010001111011011
In base 36: 2L9OH62W41ES0
## Examples
` >>> from druuid import Druuid >>> >>> d = Druuid() >>> d.druuid 12276209757600130011 >>> d.time 'Mon May 16 15:37:23 2016' >>> >>> d = Druuid(12276215031090144168) >>> d.time 'Mon May 16 15:47:52 2016' `
Metadata
Release files for Druuid 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Druuid-0.1.1.tar.gz | 2.5 kB | Without provenance | Details |
Release files / Druuid-0.1.1.tar.gz
| Download URL | Druuid-0.1.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
569fd32719d048267c177700625959360d116abe98f407f7c84f0d9b7b93b7e6
|
|
BLAKE2b-256 checksum How to use checksums |
e28df6080150a4c5ba6e716f359371a08ea7718e535808803336e11f97cf2a9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Druuid 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.