Skip to content

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

License

Notifications You must be signed in to change notification settings

Valmarelox/auto_struct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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[] };)

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages