This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


Colorize commands output or STDIN using patterns.

This is a fork of Linibou’s colorex.


Rainbow colors parts of commands output or STDIN using words or regexps. Just prepend rainbow with patterns<=>colors associations to your command, for example:

  • Tail some log file with lines containing ERROR in red:

    rainbow --red '.*ERROR.*' -- tail -f /var/log/my.log

  • Ping Google with IP addresses colorized in yellow:

    rainbow --yellow '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' -- ping

  • Rainbow can also read from STDIN instead of providing a command:

    tail -f /var/log/my.log | rainbow --red '.*ERROR.*'

Rainbow can read patterns<=>colors associations from config files, which is the most common way to use it. It automatically uses the config file if there is one named after the command name. Rainbow comes bundled with several configs for common commands:

  • Colorize the ‘diff’ command output using the provided config:

    rainbow diff file1 file2

  • Start JBoss application server with colorized logs:

    rainbow --config=jboss -- jboss/bin/ run

See man rainbow for details on how using config files and writing your own ones.



rainbow is available in AUR.

Building from sources

You can build from sources this way:

git clone git://
cd rainbow
sudo python install

Getting started

After installing the package, call the help to get started:

rainbow --help


This project is released under the terms of the GNU General Public License. See COPYING for details.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rainbow-2.5.0.tar.gz (11.2 kB) Copy SHA256 Checksum SHA256 Source Nov 19, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting