Chunker provides simple APIs to help parsing chunk-based file structure such as Zip/PNG/JPEG/WAV, etc.
You simply define the structure and Chunker handles the rest.
For more information, see docs here
You can install Chunker with pip:
$ pip install chunker
-
v1.1
Chunk.safe_matches()to auto restore offset before matching. -
v1.0 First version.
Here are some parts that are not complete or I'm not very satisfied with:
- More pre-defined field types.
Feel free to send me pull requests if you have any other idea to improve Chunker.