Skip to main content

Colorize terminal output with regex.

Project description

tat_cli

A command-line tool to colorize terminal output with regex.

Each group in the regex will be colored independently. tat-cli supports nested groups and 24-bit colors.

Example usage:

$ echo "start [121 45567 345] - [454 45563 676] end" | tat "(\[(\d(\d\d)) (\d(\d(\d)\d)\d) ((\d\d)\d)\])"

or to specify your own colors or color-pairs:

$ echo "start [121 45567 345] - [454 45563 676] end" | tat "(\[(\d(\d\d)) (\d(\d(\d)\d)\d) ((\d\d)\d)\])" ff0000 00ff00:ff00ff 0000ff ffff00:0000ff 00ffff ff00ff:00ff00 000000 ffffff:000000

How it looks:

Preview

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

tat_cli-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

tat_cli-0.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file tat_cli-0.0.1.tar.gz.

File metadata

  • Download URL: tat_cli-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for tat_cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c1e7f2408a45d75a9c653ae1a5c3ab1c37f9d3d9306bed3736cf9cbd6f888501
MD5 cb8d27abca4edb6a996d89b4587dc2e6
BLAKE2b-256 effe0b6bec97c12c82280deb3161c92dcec82faa9dff75469821bd4343f3a0b2

See more details on using hashes here.

File details

Details for the file tat_cli-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tat_cli-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for tat_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d37d50f7a8c2cce2c77636b87b10c31829052e3ed2db4e514a37b04039ff24d9
MD5 7597c2adcb28c67312ecdddd794bb5d6
BLAKE2b-256 7afbddea1c87ad28dfcc8ac756939218e1434e1c7346c919d1f1df409dfc464f

See more details on using hashes here.

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