Python implementation of Intel HEX file format allows you read, modify, write hex files and convert them to binary form.
The Intel HEX file format widely used in microprocessors and microcontrollers area as the de-facto standard for representation of code for programming microelectronic devices.
This library provides support for reading, modifying, writing Intel HEX files. You also can create new files from the scratch, convert from and/or to binary form, print human-readable dump of data, merge 2 or more files into one, etc.
There are several helper scripts: hex2bin, bin2hex, hex2dump and hexmerge.