base26
This library provides functions for encoding binary data to printable ASCII characters and decoding such encodings back to binary data. The algorithm is Base26.
Base26 encoding takes binary data (a byte array) and converts it into a stream of letters, drawn from a 26-character pool in capital letters, e.g. byte arrays of 0xA5, 0x05, 0x4B = Base26 encoded value of "TDTTKA".
Decoding is the reverse of encoding, taking a string of capital letters and turning it back into a byte array. The Base26 decoding algorithm may add an extra 0 byte at the end of the returned payload. The algorithm should check for this: typically, if the returned payload size is 129 and if it is equal to 0 remove it.
It's similar to Base64 but with a smaller pool of characters.
Base64 = ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
Base26 = ABCDEFGHIJKLMNOPQRSTUVWXYZ
Development
Install dependencies
python -m pip install pip-tools
pip-compile --extra dev pyproject.toml
pip-sync
Install base26 package in editable mode
python -m pip install -e .
Run tests
pytest tests
Metadata
Release files for base26 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| base26-1.0.5.tar.gz | 3.5 kB | Without provenance | Details for base26-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| base26-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for base26-1.0.5-py3-none-any.whl |
Total release size: 7.3 kB
Release files / base26-1.0.5.tar.gz
| Download URL | base26-1.0.5.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83faadf536793af04980600c7cdab9423e0c3d9112321d372ccd8a916c4c17b0
|
|
BLAKE2b-256 checksum How to use checksums |
45223ab8b7de2db454f78f1f5c3004a35d8eb9e4272cc65065a962355b3e88c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / base26-1.0.5-py3-none-any.whl
| Download URL | base26-1.0.5-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e9ff917cd5ea95358054ed7dafc3d57b2053c88e6d3684ddd796046a0f4a42b
|
|
BLAKE2b-256 checksum How to use checksums |
ad87745f61841a6b6bf7deace4f49b3269a5dde535b75cf6ec1aeeca0c4b91d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for base26 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.