Skip to main content

A tiny Python library for generating public IDs from integers

Project description


Create short public identifiers based on integer IDs.


pip install pids


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.2.tar.gz (1.9 kB view hashes)

Uploaded source

Built Distribution

pids-0.1.2-py3-none-any.whl (2.0 kB view hashes)

Uploaded py3

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