Kaitai Struct declarative parser generator for binary data: runtime library for Python
Project Links
Meta
Author: Kaitai Project
Requires Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
Classifiers
Development Status
- 4 - Beta
Intended Audience
- Developers
Topic
- Software Development :: Build Tools
Programming Language
- Python :: 2
- Python :: 2.7
- Python :: 3
- Python :: 3.4
- Python :: 3.5
- Python :: 3.6
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
Kaitai 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
0.11
Sep 08, 2025
0.10
Jul 09, 2022
0.9
Oct 15, 2020
0.8
Feb 07, 2018
0.7
Mar 22, 2017
0.6
Feb 04, 2017
0.5
Nov 09, 2016
0.4.11
Nov 03, 2016
0.4.10
Nov 03, 2016
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
enum34