hnimminh / human-readable-id

The human readable id generator library for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

N|Solid

HRID: Human Readable Identifier
The Human Readable ID Generator Library For Python3

Usage

Install

pip3 install hrid

Use in Python code

from hrid import HRID

hruuid = HRID()
uuid = hruuid.generate()
print(uuid)

Why HRID ?

  • Comaparing to UUID, hrid is extremely easy to remember, that why this package named human readable, example red-bird-fly-crazily versus 206dbaab-526b-41cd-aa6f-7febd82e83ab.
  • Over 800 bilions alphabet hrid can be generated by default (or many more if include more factor to format). In the other hand, with a large numbers of ids, This library can guarentee that the uuid mostly not occur twice.
  • Customizable structure for uuid, eg {adj}{noun} or {number}{adj}{noun}{verb}{adverd} or add whatever you want prefix, postfix

Credit

License

MIT

About

The human readable id generator library for python3

License:MIT License


Languages

Language:Python 100.0%