Wick is a Python command line tool that automatically generates file I/O source code for working with binary data. I was working on a project that involved reverse engineering file formats and I found that most data structures tend to be composed of several simpler data structures.
wick is a Python command line tool that automatically generates file I/O source code for working with binary data.
I was working on a project that involved reverse engineering file formats and I found that most data structures tend to be composed of several simpler data structures. I also noticed that the simpler structures were all very boilerplate. So I created this tool to write the simple structures for me, and I can do the more interesting work of composing them into the larger structure.
Let's walk through a concrete example.
Say we have binary data that is a sequence of records that are represented by a string name and an integer id. First we create a record.h file that contains a C struct representation of this data:
Then we run wick
on the file:
Which will then create a record.py file whose contents look like:
Then we can import this code into Python and do work.
Have a bug fix or a new feature you'd like to see in wick? The walking dead: michonne episode 3 1.0. Send it our way! Please make sure you create an issue that addresses your fix/feature so we can discuss the contribution.
git checkout -b features/add-javascript-code-generator
git commit -m 'Implemented Javascript code generator'
git push origin add-javascript-code-generator
MIT
See the license document for the full text.