A nushell plugin to read binary data
python3.7+
- register the plugin to nushell
register -e json plugin.py
It will introduce a new command: from-binary
. So you can just play with it.
- read and parse png file:
open capture.PNG | from-binary png | get ihdr
- read and parse ttf file:
open FiraCode-VF.ttf | from-binary ttf | get directory_table
The kaitaistruct.py
is just a copy of kaitai struct python runtime, put it directly here, so we don't need extra requirements.
And reader/*.py
are just a copy of auto-generated parser, DON'T CHANGE IT.