Hexify is a hex dump utility handy for viewing binary files at the command-prompt.
Hexify can be seen as an alternative or improvement to Tony Dycks’ readbin.py. Itrompt.
Hexify can be seen as an alternative or improvement to Tony Dycks’ readbin.py. It is more compact, more Pythonic, and slightly more feature-rich (command-line parameters, exit codes, jump-to location, etc). I have kept his output format and platform-dependent display clearing.
By implementing the bulk of the functionality as a class, the code can be more-readily adapted to other display environment. I would like an HTML-friendly version, for example. Other possible enhancements include adding a parameter to specify a display range.
This code demonstrates argument processing, data type conversion, exception handling, raw input, and some rudimentary file handling.
Download from: Homepage