mikeshardmind-base2048
Pure python Base-2048 binary-text encoding
What it is and what it does
mikeshardmind-base2048 is a pure-Python implementation of base2048, a binary-text encoding scheme that converts bytes into strings using a 2048-character Unicode alphabet. Unlike base64 (6 bits/character) or base85 (6.4 bits/character), base2048 achieves 11 bits per character without requiring byte padding, making it more compact for text-based data transfer. The character set is chosen to display correctly on modern platforms (Twitter, Discord, text editors) and is markdown-safe, though the characters are impractical to type manually.
The library provides two functions: encode() converts bytes to an encoded string, and decode() reverses the process. It includes a compressed character map loaded at import time and provides type hints compatible with pyright and mypy. The package is self-contained with no runtime dependencies, making it suitable for vendoring. Performance is reported as comparable to the original Rust-based implementation, though benchmarking on your specific data and Python version is recommended.
Use it for:
- Store state in Discord bot custom_id fields to enable high-concurrency state management without shared synchronization
- Transmit error reports in chat platforms in compact form while omitting sensitive log data
- Share public keys or cryptographic material in text-safe format across messaging apps
- Encode customized application builds or configurations for sharing via chat without external links
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Encodes binary data into text using base2048, a binary-text encoding that achieves 11 bits per character and produces display-safe, markdown-compatible output without padding overhead.
Yes, if you need compact, display-safe binary-to-text encoding. The library is production-stable, dependency-free, and actively maintained. The MPL-2.0 copyleft license is straightforward for unmodified vendoring. Install it when base64's inefficiency or character restrictions are a real constraint; skip it if you don't need the 11 bits/character advantage or markdown safety.
Install
mikeshardmind-base2048 on PyPI
pip
pip install mikeshardmind-base2048uv
uv add mikeshardmind-base2048poetry
poetry add mikeshardmind-base2048Installing mikeshardmind-base2048
Before you install
Low install friction—pure Python with no runtime dependencies and a wheel distribution. Actively maintained with recent commits; marked Production/Stable and supports Python 3.9 through 3.14.
License in practice
Licensed under MPL-2.0, a per-file copyleft license. If you do not modify the vendored files, you have no further obligation; the license is included in the header. Modification or redistribution of modified files requires license compliance.
Quickstart
pip install mikeshardmind-base2048
import base2048
encoded = base2048.encode(b"data")
decoded = base2048.decode(encoded)
Verify before relying
- Actual performance comparison with rust-base2048 and other encodings on representative data and Python versions
- Type-checker compatibility beyond pyright and mypy (pyre, pytype)
- Real-world adoption and stability feedback from production use cases
Package facts
| License | MPL-2.0 (copyleft) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 79 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,242/month — #13,608 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mikeshardmind_base2048-1.0.4-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
base2048Encodes and decodes binary data using Base2048,…
permissive · top 15,000 on PyPI
ebcdicRegisters additional EBCDIC character encoding…
permissive · top 5,000 on PyPI
unpaddedbase64Encodes and decodes Base64 data without RFC…
permissive · top 5,000 on PyPI
canoserCanoser implements canonical serialization for…
permissive · top 15,000 on PyPI
basesProvides customizable Base-N encoding and…
unclear · top 15,000 on PyPI
py-multibaseEncodes and decodes data using the Multibase…
permissive · top 15,000 on PyPI
binaryornotDetermines whether a file is binary or text by…
permissive · top 1,000 on PyPI
cbor2Encodes and decodes CBOR (Concise Binary Object…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
python-bidiConverts bidirectional text (mixed…
copyleft · top 5,000 on PyPI