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 source 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.7.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for kabbes_nanoid-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34929d12cdbe0da3410ba3de0eee8575d48a8317d8f98ddb930b0cfe5e30cd3f |
|
MD5 | bd7e2d0481802a6d61c8aff789716ed7 |
|
BLAKE2b-256 | 06f68aef84340637dba7f5af90c4aca7576fb5d6d826cd168ac8485d93638cec |