Install & Compatibility
Where this runs
tested against v0.1.1 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.012s · 17.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.006s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Packer
✓ from xdrlib3 import Packer
✗ from xdrlib import Packer
xdrlib is removed in Python 3.13; xdrlib3 is the replacement.
Unpacker
✓ from xdrlib3 import Unpacker
✗ from xdrlib import Unpacker
Same as above, xdrlib is gone in Python 3.13.
Basic usage: pack an integer, then unpack it.
from xdrlib3 import Packer, Unpacker
p = Packer()
p.pack_int(42)
data = p.get_buffer()
u = Unpacker(data)
print(u.unpack_int()) # 42
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'xdrlib'
Python 3.13 removed the deprecated xdrlib module.
fixInstall and use xdrlib3 instead: `pip install xdrlib3` and change imports to `from xdrlib3 import Packer`.
ImportError: cannot import name 'Packer' from 'xdrlib3'
Typo or incorrect submodule path. The correct import is `from xdrlib3 import Packer`.
fixUse `from xdrlib3 import Packer` (not `from xdrlib3.xdrlib import Packer`).
TypeError: pack_int() missing 1 required positional argument: 'value'
Forgetting to pass the value to pack methods.
fixCall `p.pack_int(42)` with an argument.
Upgrade
Version history
0.1.1latest on PyPI · released May 6, 2023
Audit
Dependencies
No dependency data recorded yet.