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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hexbuilder-1.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hexbuilder-1.0.2.tar.gz
  • Upload date:
  • Size: 2.3 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.2.tar.gz
Algorithm Hash digest
SHA256 93cb83305884d28d5c08d1f951911b4155c7ee9839bf3ff4e8159f56d71343a3
MD5 dc169e21ac17e4d53f341bfeaa3ec0c2
BLAKE2b-256 2efe231bcfb0eef6adac0f9bfd924ea1665e5473da2494317075c612ba338772

See more details on using hashes here.

File details

Details for the file hexbuilder-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: hexbuilder-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 02894e2c0c5440719589a8e1a41c02c4b9aca127856713d05adb475909c7a5c1
MD5 0364cd08065ff1c2cd9f63804db582d3
BLAKE2b-256 c23109ccd63dd83933c89cdba2ee1cd82f9bbd3c231c9996a81c62e3d37af49c

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