All Projects → lonetwin → colorize

lonetwin / colorize

Licence: MIT license
*nixy filter that adds color to its standard input by rows or columns

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to colorize

Dynamic Support
A complete library to build Android apps with a built-in theme engine.
Stars: ✭ 218 (+162.65%)
Mutual labels:  color
Nord Alacritty
An arctic, north-bluish clean and elegant Alacritty color scheme.
Stars: ✭ 238 (+186.75%)
Mutual labels:  color
ChromaTerm
Color your Terminal with RegEx!
Stars: ✭ 149 (+79.52%)
Mutual labels:  color
Php Console Spinner
Colorful highly configurable spinner for php cli applications (suitable for async apps)
Stars: ✭ 225 (+171.08%)
Mutual labels:  color
Spectra
A Javascript color library. Quickly manipulate and convert colors.
Stars: ✭ 235 (+183.13%)
Mutual labels:  color
Hexbot
Every request returns a different hex code—all 16,777,216 of them.
Stars: ✭ 251 (+202.41%)
Mutual labels:  color
Xcolor
Lightweight color picker for X11
Stars: ✭ 209 (+151.81%)
Mutual labels:  color
ColorPickerLib
A WPF/MVVM implementation of a themeable color picker control.
Stars: ✭ 44 (-46.99%)
Mutual labels:  color
Django Colorfield
color field for django models with a nice color-picker in the admin. 🎨
Stars: ✭ 238 (+186.75%)
Mutual labels:  color
slick
Vim/Neovim Colortheme–Truecolor, Stunning, Complete
Stars: ✭ 15 (-81.93%)
Mutual labels:  color
Dynamiccolor
Yet another extension to manipulate colors easily in Swift and SwiftUI
Stars: ✭ 2,677 (+3125.3%)
Mutual labels:  color
Color Space
Math & data behind color spaces and color conversions.
Stars: ✭ 232 (+179.52%)
Mutual labels:  color
Get Childitemcolor
Add coloring to the output of Get-ChildItem Cmdlet of PowerShell.
Stars: ✭ 251 (+202.41%)
Mutual labels:  color
Androidphotoshopcolorpicker
A fully featured Color picker Library for Android
Stars: ✭ 220 (+165.06%)
Mutual labels:  color
yiq
Returns white when a color is dark and black when a color is light.
Stars: ✭ 24 (-71.08%)
Mutual labels:  color
Rainbow
🌈 Colorize commands output or STDIN using patterns.
Stars: ✭ 217 (+161.45%)
Mutual labels:  color
Colorseekbar
A colorful SeekBar for picking color
Stars: ✭ 249 (+200%)
Mutual labels:  color
flavours
🎨💧 An easy to use base16 scheme manager that integrates with any workflow.
Stars: ✭ 331 (+298.8%)
Mutual labels:  color
sshbg
Change terminal background when SSH'ing (on specific terminals)
Stars: ✭ 45 (-45.78%)
Mutual labels:  color
Colorizeswift
Terminal string styling for Swift.
Stars: ✭ 253 (+204.82%)
Mutual labels:  color

colorize

*nixy filter that adds color to its standard input by rows or columns

Example usage

  • output alternate rows in different colors:

    $ ls -l | colorize.py -a
    $ ls -l | colorize.py -a green,blue
    
  • output each space separated column from stdin in a different color:

    $ tail -f logfile | colorize.py
    $ tail -f logfile | colorize.py -c green,blue,red,yellow
    
  • output the first 3 space separated columns in different colors and all subsequent text in one color:

    $ tail -f logfile | colorize.py 3
    $ tail -f logfile | colorize.py -c green,blue,red 3
    
  • output the columns specified by widths in different colors

# - The first 10 characters is green, the next 12 in red, followed by space
# separated columns alternating in green and red
$ tail -f logfile | colorize.py -c green:10,red:12

# - The first 10 characters in green, the next 12 in red, all subsequent text in yellow
$ tail -f logfile | colorize.py -c green:10,red:12,yellow 3

# - The first 10 characters in the default first color (blue), the next 12 in green,
# the next space separated column in red, the subsequent text in yellow
$ tail -f logfile | colorize.py -c :10,green:12,red,yellow 4
  • filter the output of tail -f, coloring lines from each file in different color:

    $ tail -f first.log second.log | colorize.py -t
    $ tail -f first.log second.log | colorize.py -t green,yellow
    

Demo

demo

Usage Tip

If you use bash, you can create colorized versions of commands, like:

function ctail() { tail $@ | colorize.py -t; }
function cll() { ls -l $@ | colorize.py 8; }
function cvmstat() { vmstat $@ | colorize.py -a red,green; }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].