Skip to main content

UniversalID

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

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
  • Fully documented: https://universalid.readthedocs.io/en/latest/
  • 100% coverage

Installation

Install the latest release from PyPI <https://pypi.org/project/universalid/>_:

.. code-block:: sh

pip install universalid

Usage

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

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

Useful links

  • Nano Id collision calculator <https://zelark.github.io/nano-id-cc/>_
  • Universal ID <https://www-01.ibm.com/support/docview.wss?uid=swg21112556>_ in Lotus Notes

Contribute

License

The project is licensed under the MIT license.

Metadata

Release files for universalid 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for universalid 1.0.0
File Size Uploaded Provenance Actions
universalid-1.0.0.tar.gz 4.4 kB Without provenance Details for universalid-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for universalid 1.0.0
File Interpreter ABI Platform Actions
universalid-1.0.0-py3-none-any.whl Python 3 none any Details for universalid-1.0.0-py3-none-any.whl

Total release size: 11.8 kB

Release files / universalid-1.0.0.tar.gz

Download URL universalid-1.0.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
629a80e1dbc54c043255a8a96451cf99296a2d8fcd3977f876ff1fe5e2c296d9
BLAKE2b-256 checksum
How to use checksums
3154eed46ac0bf25585f19d72f3590019a31a7ae967c659ecc74530e73e6b200
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / universalid-1.0.0-py3-none-any.whl

Download URL universalid-1.0.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
484649af1aa8fd98bf7388ebe5793b84040197d33c438fb2659d76b9a0f597d5
BLAKE2b-256 checksum
How to use checksums
cacec2e743befd7984abbcf13731c354d796bc54abb2d4e09520fc6e0c9c3b07
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for universalid 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page