Skip to main content

Command line tool that converts a text file to its representing hex code.

Project description

HexBuilder

GitHub Release PyPI PyPI - License

Command line tool that converts a text file to its representing hex code.

HexBuilder is a command line tool that makes bytecode writing easier for the eye. It converts a commented text file:

// header
ABCD DCBA 0000 0000
0000 0000 0000 0000

/*
    This is a multi-line comment.
*/
1239 9129

// oh and caps don't matter
AbCd cAfe

to a binary file whose hex dump is:

ABCD DCBA 0000 0000
0000 0000 0000 0000
1239 9129 ABCD CAFE

So it basically strips all comments and whitespaces and converts a text file to a binary file.

Installation

Install with pip:

pip install hexbuilder

Usage

Enter in command line:

hexbuilder my_text_file

This will create a .hex file (same name as input) as output in the same directory.

Alternatively, the output file can be specified with -o:

hexbuilder my_text_file -o output.hex

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

hexbuilder-1.0.3.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

hexbuilder-1.0.3-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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