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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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