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.
Metadata
Release files for alphinity 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| alphinity-0.1.4.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alphinity-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / alphinity-0.1.4.tar.gz
| Download URL | alphinity-0.1.4.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29d0e413677868867d2e82490476c46e1c310f7001330607b865193f55e8814b
|
|
BLAKE2b-256 checksum How to use checksums |
f9873b031e98b5b516793a78fabd2dea8bc23b4e49e402a0e7df6570ec4d7d23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / alphinity-0.1.4-py3-none-any.whl
| Download URL | alphinity-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c52612f278e37798f1eed7e4749d1eaa846fd96fa7a9320a5f67bb520735dcb1
|
|
BLAKE2b-256 checksum How to use checksums |
45f9a9d815df2e586d787f6906f422997ee43bd307b178ebe1542662ca2f1d4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|