auto-struct

Easily parse binary file in python3.8


License
MIT
Install
pip install auto-struct==0.420

Documentation

auto_struct

Python 3.8 module using annotations and dataclasses for easily writing parsers for binary data

  • Parse packed binary data using declarative forms
  • Easily validate parsed data
  • Easily nest structs
  • No Dependencies :)

Usage example

See this

Contribution

Contributors are welcome!

TODO:

  • Method documentation (WIP)
  • Documentation (WIP)
  • More examples
  • Tests
  • Intermediate types/Binding two types - (E.g. in memory type vs how should it be used)
    • API Should probably be some def twin(self)?
  • Dynamic sized structs (e.g. struct a{ int len; char data[] };)