Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

universalid

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universalid

UUID with built-in creation date

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc