Registry / serialization / endec
library0.5.5pypypi✓ verified 81d ago

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 endec
INSTALL
IMPORT
SIG · ENDEC
E
endec
serializationpythonv0.5.5
Install
2.0s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.5.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.0s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

decode
from endec import decode
from endec import Base64
encode
from endec import encode
from endec import Base64

Basic usage: encode and decode bytes using the Base64 codec.

from endec import encode, decode, Base64 # Encode bytes to base64 string data = b"hello world" encoded = encode(data, Base64) print(encoded) # aGVsbG8gd29ybGQ= # Decode back decoded = decode(encoded, Base64) print(decoded) # b'hello world'
Debug
Known issues
breakingIn v0.4.0, dropped support for PyPy 3.9 and 3.10. If you use PyPy, ensure you are on PyPy 3.11+.
fix
Upgrade to PyPy 3.11+ or pin endec to <0.4.0.
affects: >=0.4.0
gotchaThe encode function expects bytes input. Passing a string will raise a TypeError.
fix
Ensure input is bytes: encode(b'text') not encode('text').
affects: *
gotchaThe decode function returns bytes, not a string. Many users expect a string for base64.
fix
Use .decode() on the result to get a string: decode(encoded, Base64).decode('utf-8').
affects: *
Upgrade
Version history
0.5.5latest on PyPI · released Jun 12, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources