Skip to main content

A tiny Python library for generating public IDs from integers

Project description

pids

Create short public identifiers based on integer IDs.

Installation

pip install pids

Usage

from pids import pid
public_id = pid.from_int(1234)
# public_id is now "gxd"
id = pid.to_int("gxd")
# id is now 1234

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

pids-0.1.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file pids-0.1.1.tar.gz.

File metadata

  • Download URL: pids-0.1.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pids-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f5aac4fbf17fdb83af4bc9e2075d749b2f1693a7bebd650379b2d0051176c4bd
MD5 98c2c74f9f4e0679b5a8bbd865cad22e
BLAKE2b-256 fef5f825ecb3f9838e598433f6c18345093690d35bf6c42266f11a43adad9727

See more details on using hashes here.

Supported by

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