Kaitai Struct declarative parser generator for binary data: runtime library for Python
Maintained. Last release 4 days ago, commits in 6 of the last 26 weeks. Weaker on release cadence and contributor spread.
pip install kaitaistructKaitai Struct: runtime library for Python
This library implements Kaitai Struct API for Python.
Kaitai Struct is a declarative language used for describe various binary data structures, laid out in files or in memory: i.e. binary file formats, network stream packet formats, etc.
It is similar to Python's Construct 2.10 but it is language-agnostic. The format description is done in YAML-based .ksy format, which then can be compiled into a wide range of target languages.
Further reading:
- About Kaitai Struct
- About API implemented in this library
- Python-specific notes in KS documentation discuss installation and usage of this runtime