ryansturmer / hexfile Goto Github PK
View Code? Open in Web Editor NEWPython library for parsing Intel Hex files.
License: MIT License
Python library for parsing Intel Hex files.
License: MIT License
Looking at this line
start_address = address.start + self.start_address
I think the below would make more sense.
start_address = self.start_address
As of now, I get this behavior something like this:
>>> seg
<2048 byte segment @ 0x90000000>
>>> seg[0x90000000:0x90000010]
<16 byte segment @ 120000000>
hexfile seems to be compatible with Python 3 but you can't install it via pip, instead you get the following error;
pip install hexfile
Collecting hexfile
Using cached hexfile-0.1.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-lhegh4st/hexfile/setup.py", line 1, in <module>
import hexfile
File "/tmp/pip-build-lhegh4st/hexfile/hexfile/__init__.py", line 8, in <module>
from core import load, HexFile, Segment
ImportError: No module named 'core'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lhegh4st/hexfile
If I do the following it all seems to work;
wget https://raw.githubusercontent.com/ryansturmer/hexfile/master/hexfile/core.py -O hexfile.py
python3 hexfile.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.