nanoid implementation in python
Project description
NanoPyD
Python NanoID with class typing.
Builds a Nano ID per spect defined by this repo.
Installation and Usage:
To install:
pip install nanopyd
Import:
from nanopyd import NanoID
Usage (with typing):
id : NanoID = NanoID()
Parameters:
- alphabet :
- "alphanumeric"= "_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "uppercase" = "_-ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "lowercase" = "_-abcdefghijklmnopqrstuvwxyz"
- "numbers" = "0123456789"
- "no_lookalikes" = "*-23456789abcdefghjkmnpqrstwxyzABCDEFGHJKMNPQRSTWXYZ"
- size :
- length of output id, default 21
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nanopyd-0.1.1.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file nanopyd-0.1.1.tar.gz
.
File metadata
- Download URL: nanopyd-0.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc1ad952741f6b8c1cc574c5ca5f0e4dc9c6a0790f80c94dd16dbf2e97e5576 |
|
MD5 | e84a934ffa66d7e1262622db18b95a47 |
|
BLAKE2b-256 | 337006d841af12744a6f44deb81b0e6c1c31d5210f9d4b679ff21938f5448317 |
File details
Details for the file nanopyd-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: nanopyd-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce09a30a690356fb5c8bd0f9da8b00b23c194578fb01eb844bc4f1c4b056a13d |
|
MD5 | b4e0082c8d0f6ca3eb951028f396a0a8 |
|
BLAKE2b-256 | df99671202358c2a29642c9e083267653b89f9358960f91c78b0e41c4f323446 |