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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pids-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 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.2.tar.gz
Algorithm Hash digest
SHA256 4d087f69fcae0ae0c81301730a392a71485514d891ae4f6944845189b0636d2d
MD5 a801d8f06a9e6ac77d8fab625b16fffa
BLAKE2b-256 0fba9a3ea21714d925a60fd1041a156e39005437da7b6f99d3f9f6d78552d4e2

See more details on using hashes here.

File details

Details for the file pids-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pids-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b6055a6ab6d4fa4a4bb5b8a325b58aeac8a6108769e2f393c199fab029ff50
MD5 c205d02a293be416818d301f9d4cc5cb
BLAKE2b-256 42163fc249dc91a1e6f8a9e861db3f4939462f943059306be5629941e8ba8baf

See more details on using hashes here.

Supported by

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