bincopy is a Python library for manipulating various binary information file formats, including Motorola S-Record, Intel HEX, TI-TXT, Verilog VMEM, ELF, and raw binary files. The current version is 20.1.1, and the library is actively maintained with regular updates.
pip install bincopyVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to parse Intel HEX data from a string, add it to a `bincopy.BinFile` object, and then convert it to Motorola S-Record format. It also shows how to access basic information like memory addresses.
Upgrade your Python environment to Python 3.9 or a newer version (e.g., `python3.9 -m pip install bincopy`).
Always use `bincopy.BinFile()` for instantiating the binary file object.
Wrap string content in `io.StringIO(your_string_data)` before passing it to methods like `add_ihex()` or `add_srec()`.
Upgrade your Python environment to version 3.9 or newer (e.g., `python3.9 -m pip install bincopy`) to meet the library's minimum version requirements.
Always use `bincopy.BinFile()` for instantiating the binary file object instead of `bincopy.File()`.
Wrap the string content in an `io.StringIO` object before passing it to methods expecting a file-like object (e.g., `bincopy_object.add_ihex(io.StringIO(your_string_data))`).
Ensure bincopy is installed for your active Python environment using `pip install bincopy`, and verify that the Python interpreter being used has access to the installation path.