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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for alphinity-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c52612f278e37798f1eed7e4749d1eaa846fd96fa7a9320a5f67bb520735dcb1 |
|
MD5 | f98117bae23f51541f6d036d45c87c30 |
|
BLAKE2b-256 | 45f9a9d815df2e586d787f6906f422997ee43bd307b178ebe1542662ca2f1d4d |