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.

Files for pids, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pids-0.1.1.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page