3 ms·
I found construct quite good to parse binary data too. Had used antlr with java but needed something simpler and for python. https://pypi.python.org/pypi/const
by kinow 11y ago
I found construct quite good to parse binary data too. Had used antlr with java but needed something simpler and for python.
https://pypi.python.org/pypi/construct https://pypi.python.org/pypi/construct
- js2 11y agoHere's an example of fairly extensive use of construct: http://amnesia.gtisc.gatech.edu/~moyix/minidump.py http://amnesia.gtisc.gatech.edu/~moyix/minidump.py Explanation: http://moyix.blogspot.com/2008/05/parsing-windows-minidumps.html?m=1 http://moyix.blogspot.com/2008/05/parsing-windows-minidumps....
- mvermaat 11y agoThanks for the link, I didn't know about construct! A colleague of mine recently developed a similar (from the looks of it) library, in Python and Javascript: https://github.com/jfjlaros/bin-parser https://github.com/jfjlaros/bin-parser
- luch 11y agoUnfortunately it's not under active development for several years. Lots of good ideas though.