Skip to main content

Colorize terminal output with regex.

Project description

tat_cli

A command-line tool to colorize terminal output with regex. pip install tat-cli to install.

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

Uploaded Source

Built Distribution

tat_cli-0.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tat_cli-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 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.2.tar.gz
Algorithm Hash digest
SHA256 625b2934cdccec3c53c10ad164f71c58a25c0228d969c26f72eba0c9cf937a34
MD5 d98e066e79a7737acce1557f81cc1dba
BLAKE2b-256 d4b9001700286b81262c6ca06305874405d58ad6e879bbfca5df218d8ed45cab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tat_cli-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91a65e50d95e5c21636890a40f06198edd1e1d6ed929650b67c46b076cda04e2
MD5 c5cd4d44aed6be9abc3842ddd26854fa
BLAKE2b-256 5a7dd603a6c1af3ef5ccfdb5e4ffe1687d6dab2c98bdeaebb37088539c2f7bab

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