Skip to main content

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


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)

Uploaded source

Built Distribution

universalid-0.0.1-py3-none-any.whl (5.8 kB view hashes)

Uploaded py3

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