Skip to main content

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

Project description

HexBuilder

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.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file hexbuilder-1.0.1.tar.gz.

File metadata

  • Download URL: hexbuilder-1.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for hexbuilder-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8a8825904fd2dda6deae10813e676742fbd1587ae4832bd943f389d85daf3ea3
MD5 3344b21f1f3a9c3d251e1c6364c59a86
BLAKE2b-256 1d86edcba6f6dc9b57a4c7bd1b83de9f221f54eafb64bab6a5d94ff3aed7530b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page