Skip to main content

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:

  1. alphabet :
    • "alphanumeric"= "_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    • "uppercase" = "_-ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    • "lowercase" = "_-abcdefghijklmnopqrstuvwxyz"
    • "numbers" = "0123456789"
    • "no_lookalikes" = "*-23456789abcdefghjkmnpqrstwxyzABCDEFGHJKMNPQRSTWXYZ"
  2. size :
    • length of output id, default 21

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

nanopyd-0.1.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

nanopyd-0.1.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page