Skip to main content

alphinity encodes integers to alphabetize in ascending order.

Project description

alphinity

alphinity encodes integers to alphabetize in ascending order.

from alphinity import encode

encode(100)  # -> "ccv"

# passes
assert sorted(map(encode, range(10**6))) == [*map(encode, range(10**6))]

For stable encoding,

from alphinity.v1 import encode

Notes

Alphabetization doesn't work strictly infinitely, just through very, very high integers i.e., 1e35.

Non-negative integers only.

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

alphinity-0.1.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

alphinity-0.1.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file alphinity-0.1.4.tar.gz.

File metadata

  • Download URL: alphinity-0.1.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for alphinity-0.1.4.tar.gz
Algorithm Hash digest
SHA256 29d0e413677868867d2e82490476c46e1c310f7001330607b865193f55e8814b
MD5 08f3c21b7962dd93e222bdd1efa3c394
BLAKE2b-256 f9873b031e98b5b516793a78fabd2dea8bc23b4e49e402a0e7df6570ec4d7d23

See more details on using hashes here.

File details

Details for the file alphinity-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: alphinity-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for alphinity-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c52612f278e37798f1eed7e4749d1eaa846fd96fa7a9320a5f67bb520735dcb1
MD5 f98117bae23f51541f6d036d45c87c30
BLAKE2b-256 45f9a9d815df2e586d787f6906f422997ee43bd307b178ebe1542662ca2f1d4d

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page