Skip to main content

A colorized drop-in replacement for xxd.

Project description

About

cxxd is a colorized drop-in for xxd intended to greatly increase the ease of visual pattern recognition in hexdumps. This effect is achieved by calling xxd in a subprocess and colorizing the output. It will, by default, use ansi color codes to color a byte based on it's value. This utility should support all xxd functionality, with the inclusion of 3 extra optargs:

-x, --pixelate          replace hex values with colored blocks
-d, --display_palette   display colors with the byte range covered
-R, --rotate_colors     circularly rotate color gradient base index

Take it for a spin:

for i in {0..255}; do printf `printf "\\\\\x%02x" $i`; done | ./cxxd

TODO

  • Tests
  • Better color gradient at pink/purple range
  • Versioning
  • Failure modes: file doesn't exist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cxxd, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size cxxd-1.0.1-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size cxxd-1.0.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page