A web-compatible encoding and decoding library for Python, leveraging a Rust backend via PyO3 for performance. Current version 0.5.4 supports Python >=3.8. Releases are frequent, with minor patches and version bumps. It provides encoding/decoding for base64, base32, base16, hex, and other formats.
pip install endecVerified import paths — ran on the pinned version, not inferred.
Basic usage: encode and decode bytes using the Base64 codec.
Upgrade to PyPy 3.11+ or pin endec to <0.4.0.
Ensure input is bytes: encode(b'text') not encode('text').Use .decode() on the result to get a string: decode(encoded, Base64).decode('utf-8').No dependency data recorded yet.