Skip to main content

UUID with built-in creation date

Project description


Generates unique id's based on the current date/time


  • 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
  • Fully documented:
  • 100% coverage


Install the latest release from PyPI <>_:

.. code-block:: sh

pip install universalid


The Unid class is available directly off the :code:universalid package::

>>> from universalid import Unid
>>> Unid.create(prefix='DK')

>>> unid = Unid.create()
>>> Unid.get_time( unid )
datetime.datetime(2018, 12, 20, 11, 36, 27, 756356)


Useful links

  • Nano Id collision calculator <>_
  • Universal ID <>_ in Lotus Notes



The project is licensed under the MIT license.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for universalid, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size universalid-1.0.0-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size universalid-1.0.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page