All Projects → nicoulaj → Rainbow

nicoulaj / Rainbow

Licence: gpl-3.0
🌈 Colorize commands output or STDIN using patterns.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Rainbow

Fsq
A tool for querying the file system with a SQL-like language.
Stars: ✭ 60 (-72.35%)
Mutual labels:  terminal, regex
Colored
🎨 Mirror of colored library repository
Stars: ✭ 98 (-54.84%)
Mutual labels:  terminal, color
Colors
List of 256 color codes for Xterm including an example of the color, Xterm Name, Xterm Number, HEX, RGB and HSL code.
Stars: ✭ 73 (-66.36%)
Mutual labels:  terminal, color
Rang
A Minimal, Header only Modern c++ library for terminal goodies 💄✨
Stars: ✭ 1,080 (+397.7%)
Mutual labels:  terminal, color
Sty
String styling for your terminal.
Stars: ✭ 129 (-40.55%)
Mutual labels:  terminal, color
Nord Konsole
An arctic, north-bluish clean and elegant Konsole color scheme.
Stars: ✭ 56 (-74.19%)
Mutual labels:  terminal, color
Nord Hyper
An arctic, north-bluish clean and elegant Hyper theme plugin.
Stars: ✭ 96 (-55.76%)
Mutual labels:  terminal, color
Termite Color Switcher
termite color switcher
Stars: ✭ 28 (-87.1%)
Mutual labels:  terminal, color
Box Cli Maker
Make Highly Customized Boxes for your CLI
Stars: ✭ 115 (-47%)
Mutual labels:  terminal, color
Ls colors
A collection of LS_COLORS definitions; needs your contribution!
Stars: ✭ 1,568 (+622.58%)
Mutual labels:  terminal, color
Crex
Explore, test, and check regular expressions in the terminal.
Stars: ✭ 54 (-75.12%)
Mutual labels:  terminal, regex
Sd
Intuitive find & replace CLI (sed alternative)
Stars: ✭ 2,755 (+1169.59%)
Mutual labels:  terminal, regex
Crossline
A small, self-contained, zero-config, MIT licensed, cross-platform, readline and libedit replacement.
Stars: ✭ 53 (-75.58%)
Mutual labels:  terminal, color
Python Terminal Color
Drop-in single file library for printing color in terminal
Stars: ✭ 59 (-72.81%)
Mutual labels:  terminal, color
Crossterm
Cross platform terminal library rust
Stars: ✭ 1,023 (+371.43%)
Mutual labels:  terminal, color
Xa
Beautiful & Customizable logger ❤️
Stars: ✭ 78 (-64.06%)
Mutual labels:  terminal, color
Closestx11color
Find the closest xterm-256 colors (between 0 and 255) to an arbitrary HTML hexa color (e.g. #ABCDEF)
Stars: ✭ 13 (-94.01%)
Mutual labels:  terminal, color
Nord Guake
An arctic, north-bluish clean and elegant Guake color theme.
Stars: ✭ 20 (-90.78%)
Mutual labels:  terminal, color
Chalk Animation
🎬 Colorful animations in terminal output
Stars: ✭ 1,489 (+586.18%)
Mutual labels:  terminal, color
Grex
A command-line tool and library for generating regular expressions from user-provided test cases
Stars: ✭ 4,847 (+2133.64%)
Mutual labels:  terminal, regex

rainbow

.. image:: https://img.shields.io/github/tag/nicoulaj/rainbow.svg :target: https://pypi.org/project/rainbow :alt: last release

.. image:: https://pepy.tech/badge/rainbow :target: https://pypi.org/project/rainbow :alt: downloads

.. image:: https://img.shields.io/pypi/pyversions/rainbow.svg :target: https://pypi.org/project/rainbow :alt: python versions

.. image:: https://travis-ci.org/nicoulaj/rainbow.svg?branch=master :target: https://travis-ci.org/nicoulaj/rainbow :alt: continuous integration

.. image:: https://codecov.io/gh/nicoulaj/rainbow/branch/master/graph/badge.svg :target: https://codecov.io/gh/nicoulaj/rainbow :alt: test coverage

.. image:: https://badges.gitter.im/nicoulaj/rainbow.svg :target: https://gitter.im/nicoulaj/rainbow :alt: gitter chat


Easily colorize commands output using patterns. ::

rainbow [ --COLOR=PATTERN ... | --conf CONF ] COMMAND

Examples

Using the command line

Prepend ``rainbow`` with ``--COLOR=PATTERN`` 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

-  You can also pipe commands output into rainbow:
   ::

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


Using configs
~~~~~~~~~~~~~

Rainbow can load configuration for each command from files, which is the most convenient way to use it. When running ``rainbow mycommand``, rainbow will automatically look for a config named ``mycommand.cfg`` in ``~/.config/rainbow``, ``~/.rainbow``, ``/etc/rainbow``, or builtin configs:

-  Colorize the ``diff`` command output using the builtin config:
   ::

     rainbow diff file1 file2

-  Start my custom command, using ``~/.rainbow/mycommand.cfg``:
   ::

     rainbow mycommand

The syntax for writing configs is straightforward, see the
`builtin configs <https://github.com/nicoulaj/rainbow/blob/master/rainbow/config/builtin>`_
for examples. See also the `commands support table <https://github.com/nicoulaj/rainbow/blob/master/CONTRIBUTING.md>`_.


Installation
------------

Using packages
~~~~~~~~~~~~~~

============================================  ============================================
 System                                        Installation instructions
============================================  ============================================
 Debian / Ubuntu                               `rainbow repository <https://software.opensuse.org/download.html?project=home%3Anicoulaj%3Arainbow&package=rainbow>`_
 Fedora / CentOS / RHEL / Scientific Linux     `rainbow repository <https://software.opensuse.org/download.html?project=home%3Anicoulaj%3Arainbow&package=rainbow>`_
 OpenSUSE / SLE                                `rainbow repository <https://software.opensuse.org/download.html?project=home%3Anicoulaj%3Arainbow&package=rainbow>`_
 Arch Linux                                    `AUR/rainbow <https://aur.archlinux.org/packages/rainbow>`_ / `AUR/rainbow-git <https://aur.archlinux.org/packages/rainbow-git>`_
 `pip` / `easy_install`                        `PyPI: rainbow <https://pypi.org/project/rainbow>`_
============================================  ============================================


Building from sources
~~~~~~~~~~~~~~~~~~~~~

You can build from sources this way:

::

    git clone git://github.com/nicoulaj/rainbow.git
    cd rainbow
    python setup.py build install --user


Contributing
------------

Contributions are welcome, please see `CONTRIBUTING <https://github.com/nicoulaj/rainbow/blob/master/CONTRIBUTING.md>`_.


License
-------

This project is a fork of `Linibou's colorex <http://bitbucket.org/linibou/colorex>`_.
It is is released under the terms of the `GNU General Public
License <http://www.gnu.org/licenses/gpl.html>`_. See ``COPYING`` for
details.
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].