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.1.zip (24.9 kB view details)

Uploaded Source

Built Distributions

hexformat-0.1-py3.5.egg (49.9 kB view details)

Uploaded Source

hexformat-0.1-py2.7.egg (48.9 kB view details)

Uploaded Source

File details

Details for the file hexformat-0.1.zip.

File metadata

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

File hashes

Hashes for hexformat-0.1.zip
Algorithm Hash digest
SHA256 a55fc89bfef9c08055ab5e9754ccfdf140d77deb492835722c8574ea391c9dec
MD5 276b2bdb31d0629639ff69d86889e273
BLAKE2b-256 a47bb0215920c032b24969011654de0f1d62cd00b4ce27b65f36e1aa69996108

See more details on using hashes here.

File details

Details for the file hexformat-0.1-py3.5.egg.

File metadata

  • Download URL: hexformat-0.1-py3.5.egg
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hexformat-0.1-py3.5.egg
Algorithm Hash digest
SHA256 4b87d1d6e6019d7d59e591ddbbd5ebc9057bb89647c7041c9fd589e1b636bab7
MD5 71378909a2fbf782447468d14f9c8acd
BLAKE2b-256 332e8086bebb5cfdc83e016513c515616b8f635760514f69da898c89a441226d

See more details on using hashes here.

File details

Details for the file hexformat-0.1-py2.7.egg.

File metadata

  • Download URL: hexformat-0.1-py2.7.egg
  • Upload date:
  • Size: 48.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hexformat-0.1-py2.7.egg
Algorithm Hash digest
SHA256 1091f1865d7fbd63620d21ae065824b0074ee65774a8f2ca5fe31a3401d544eb
MD5 a760493b506a52b399ae9f226ea22d01
BLAKE2b-256 91ea93b953e06781ccfc88fb6ba3a452dbaf688f2f2af1dd32e74856b3d97802

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