Skip to main content

nanoid

Simple Python library for generating NanoIDs

Documentation
PyPI

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

Metadata

Release files for kabbes-nanoid 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kabbes-nanoid 0.7.0
File Size Uploaded Provenance Actions
kabbes_nanoid-0.7.0.tar.gz 3.4 kB Without provenance Details for kabbes_nanoid-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kabbes-nanoid 0.7.0
File Interpreter ABI Platform Actions
kabbes_nanoid-0.7.0-py3-none-any.whl Python 3 none any Details for kabbes_nanoid-0.7.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / kabbes_nanoid-0.7.0.tar.gz

Download URL kabbes_nanoid-0.7.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f3ab8e6b36634776f1ca04fdbb4bdfc7f61ebcf63291d76261df1d8c5f065644
BLAKE2b-256 checksum
How to use checksums
b49b8225de41c9c41511993b75c0fdf63c2be2850130c9cc875d290f1b0a62c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Release files / kabbes_nanoid-0.7.0-py3-none-any.whl

Download URL kabbes_nanoid-0.7.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34929d12cdbe0da3410ba3de0eee8575d48a8317d8f98ddb930b0cfe5e30cd3f
BLAKE2b-256 checksum
How to use checksums
06f68aef84340637dba7f5af90c4aca7576fb5d6d826cd168ac8485d93638cec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Security for kabbes-nanoid 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page