UUID with built-in creation date
Project description
UniversalID
Generates unique id's
Features
- Unid includes a datetime stamp - your can extract the creation time from a Unid
- You can assign a custom prefix to your id, e.g. a country code
- Unid is case-insentitive
- Base 36 encoded (digits + letters from A-Z)
- Uses the secrets library to generate cryptographically strong pseudo-random numbers
Getting started
>>>> from universalid import Unid
>>>> Unid.create(prefix='DK')
'DKDQ2D6JCJXI2Q82J06X0PK16P34XDO0'
>>>> unid = Unid.create()
>>>> Unid.get_time( unid )
datetime.datetime(2018, 12, 20, 11, 36, 27, 756356)
Inspiration
The Nano id project
Nano Id collision calculator
Universal ID in Lotus Notes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
universalid-0.0.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for universalid-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bdce2a7433e2f4508022370e12e5a1884c168f14365cdc33f791e1333fb9706 |
|
MD5 | f5f2c68f36e763f85471bb3be118230e |
|
BLAKE2b-256 | ca027b7bd64b80bda5fdf770b922d931f242e328aad47203ba5f5dd157c693d3 |