Skip to main content
Latest Version

num_shorty converts an integer to a hexdigest like string - except not 16 length but provided alphabet length

Example:

>>> from import num_shorty
>>> num_shorty.short(123456789)
'8m0Kx'
>>> num_shorty.expand('8m0Kx')
123456789

You can implement your own alphabet set

>>> from import num_shorty
>>> num_shorty.short(123456789, alphabet='abcdefgABCDEFG-*!:_')
'cE!geD-'
>>> num_shorty.expand('cE!geD-', alphabet='abcdefgABCDEFG-*!:_')
123456789

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

num_shorty-1.0.1.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file num_shorty-1.0.1.tar.gz.

File metadata

  • Download URL: num_shorty-1.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4

File hashes

Hashes for num_shorty-1.0.1.tar.gz
Algorithm Hash digest
SHA256 09de225cd32f894fc9830f947f5ef44be43a30b6ca9a76e513c58fc6af10e3c2
MD5 e0b79e46226146ab53124954ea3ab575
BLAKE2b-256 826665148367affc764ca1e32a74dcfc2406917e39c7e848a32532f8e63c70c0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page