Skip to main content

Library for popular HEX-formats like IntelHex and SRecord

Project description

The hexformat Python package allows the processing of several HEX data formats. Supported formats are the Intel-Hex format, the Motorola S-Record format as well as the simple hex dump format. The first two are often used for programming microcontrollers while the last is often used to display binary data in a user readable way.

Files in the mentioned format can be created, modified (e.g. set, delete and fill data) and read from or written to files. A base class MultiPartBuffer is provided which implements the handling of multiple data parts where every part is identified by its corresponding start address. This base class allows for the basic operations like reading and writing binary files as well as modifing the binary data. The specific classes IntelHex, SRecord and HexDump are derivated from it which implement the parsing and generating of the corresponding HEX formats as well as implementing file format specific features.

Motivation

This package was mainly created to replace the srecord command line tool and its complicated interface with a clean python interface for use with handling microcontroller HEX files. The existing Python library intelhex was used for a while, but then the need for the S-Record format appeared. Also intelhex.IntelHex did not provide a suitable interface for the most often used operations.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hexformat-0.2.zip (51.6 kB view details)

Uploaded Source

File details

Details for the file hexformat-0.2.zip.

File metadata

  • Download URL: hexformat-0.2.zip
  • Upload date:
  • Size: 51.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hexformat-0.2.zip
Algorithm Hash digest
SHA256 9d5913e4ec9fc24ac87b8474281ad64a4dbddd19ec5a7b1e0358debbdd320f6b
MD5 187e57288c5bccf9e425c2b16465386c
BLAKE2b-256 0d89271ecab76f0b592a8c684841b0ea5566fe10e7a8f8af532896205a095b85

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page