HRID: Human Readable Identifier
The Human Readable ID Generator Library For Python3
Install
pip3 install hrid
Use in Python code
from hrid import HRID
hruuid = HRID()
uuid = hruuid.generate()
print(uuid)
- Comaparing to UUID, hrid is extremely easy to remember, that why this package named
human readable
, examplered-bird-fly-crazily
versus206dbaab-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 wantprefix
,postfix