Binary data handling in Python using dictionaries. Current version 0.12.2, stable and infrequently updated.
pip install pycstructNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic example of defining a struct, packing, and unpacking binary data.
Prefix field types with '>' or '<' to set endianness, e.g., {'field': '>u16'}.Use a flat dictionary or combine multiple Struct instances manually.
Use 'bytes' type with length, e.g., {'data': 'bytes(4)'} instead of {'data': 's4'}.Make sure you have version >=0.10 and use from pycstruct import Struct.
Ensure the template's field types match the binary layout and add endianness prefix if needed.
No dependency data recorded yet.