Python library for generating NanoIDs
Project description
nanoid
Simple Python library for generating NanoIDs
Installation
pip install kabbes_nanoid
Usage
For more in-depth documentation, read the information provided on the Pages. Or better yet, read the code.
Importing
import nanoid
Get a nanoid string
nanoid_string = nanoid.generate()
print (nanoid_string)
Generate a Nanoid object
Obj = nanoid.Nanoid()
print (Obj.nanoid)
print (Obj.size)
print (Obj.alphabet)
Set custom generation parameters
print (nanoid.generate( size = 10, alphabet = '0123456789ABCDEF' ))
Obj = nanoid.Nanoid( size = 10, alphabet = '0123456789ABCDEF' )
print (Obj.nanoid)
Author
James Kabbes
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kabbes_nanoid-0.6.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for kabbes_nanoid-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362050086001da524bdb6f7379596b39919ef2fca3cc892e1f740cb13d1f69d6 |
|
MD5 | 762217e92b6025dda680f7d6022f99ae |
|
BLAKE2b-256 | f1889f53e109f3f7d2cd0a253d7c349787d512dd1b56476824a3979c79fd3366 |