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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file universalid-0.0.1.tar.gz.

File metadata

  • Download URL: universalid-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for universalid-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d78149c93e9be2b1e627c6c1d84b4dbc6467e105def2754c17808892b40576cc
MD5 d41e08900b60a2850cb2aa8355236b34
BLAKE2b-256 0c437ecb0c0705d76aa3f726e9d903ac8cd1d66f0780d46a9bf2785719cba185

See more details on using hashes here.

File details

Details for the file universalid-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: universalid-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for universalid-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bdce2a7433e2f4508022370e12e5a1884c168f14365cdc33f791e1333fb9706
MD5 f5f2c68f36e763f85471bb3be118230e
BLAKE2b-256 ca027b7bd64b80bda5fdf770b922d931f242e328aad47203ba5f5dd157c693d3

See more details on using hashes here.

Supported by

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