hex-dump command line tool
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
images
.gitignore
.pylintrc
.travis.yml
LICENSE
hexprint.py
pytest.ini
readme.md
requirements.txt
setup.py

readme.md

Build Status

hexprint - hex-dump tool

This is a simple hex-dump utility, with an output format similar to the old DEBUG.EXE program that shipped with MS-DOS.

I wrote it because I wanted a quick simple manual tool for viewing bytes at a specified offset from the beginning or end of a file when I was working on code to navigate JPEG segments. If you want to edit the hex contents of a file, check out the excellent hexdump package, and if you want to do hex dumps programmatically in Python you may find the standard library's bin2ascii module useful.

installation

Hexprint uses the Click CLI library. To install for development use, clone this repo and then type this command in the repo folder:

pip install --editable .

That creates the hexprint alias to run the program, and changes to hexprint.py are immediately "live" — no need to re-install.

After it's installed, you can use the hexprint command to run it. For example, to display the help screen:

helpscreen

The output format looks like this:

basic usage

Only simple ASCII characters are displayed in the column to the right. All other characters are displayed as a period (.).

dependencies

Hexprint uses these module:

See setup.py.

Hexprint uses Travis-CI for automated tests. Tests are run for all code changes pushed to this repo.