{"id":20978842,"url":"https://github.com/nicoulaj/rainbow","last_synced_at":"2025-04-05T00:10:53.137Z","repository":{"id":1884872,"uuid":"2810646","full_name":"nicoulaj/rainbow","owner":"nicoulaj","description":":rainbow: Colorize commands output or STDIN using patterns.","archived":false,"fork":false,"pushed_at":"2023-03-06T12:57:19.000Z","size":590,"stargazers_count":255,"open_issues_count":33,"forks_count":33,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-28T23:09:32.803Z","etag":null,"topics":["color","python","regex","terminal"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicoulaj.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-11-19T20:33:07.000Z","updated_at":"2025-02-06T04:42:09.000Z","dependencies_parsed_at":"2023-07-06T08:01:49.528Z","dependency_job_id":null,"html_url":"https://github.com/nicoulaj/rainbow","commit_stats":{"total_commits":390,"total_committers":11,"mean_commits":35.45454545454545,"dds":"0.15897435897435896","last_synced_commit":"379c9b0333df7d8be220e029c83b153896b998f1"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoulaj%2Frainbow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoulaj%2Frainbow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoulaj%2Frainbow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicoulaj%2Frainbow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicoulaj","download_url":"https://codeload.github.com/nicoulaj/rainbow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266565,"owners_count":20910836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color","python","regex","terminal"],"created_at":"2024-11-19T05:09:39.700Z","updated_at":"2025-04-05T00:10:53.119Z","avatar_url":"https://github.com/nicoulaj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"rainbow\n=======\n\n.. image:: https://img.shields.io/github/tag/nicoulaj/rainbow.svg\n   :target: https://pypi.org/project/rainbow\n   :alt: last release\n\n.. image:: https://pepy.tech/badge/rainbow\n   :target: https://pypi.org/project/rainbow\n   :alt: downloads\n\n.. image:: https://img.shields.io/pypi/pyversions/rainbow.svg\n   :target: https://pypi.org/project/rainbow\n   :alt: python versions\n\n.. image:: https://github.com/nicoulaj/rainbow/actions/workflows/tests.yml/badge.svg\n   :target: https://github.com/nicoulaj/rainbow/actions\n   :alt: continuous integration\n\n.. image:: https://api.codeclimate.com/v1/badges/724f29330eb898c7516b/test_coverage\n   :target: https://codeclimate.com/github/nicoulaj/rainbow/test_coverage\n   :alt: test Coverage\n\n.. image:: https://badges.gitter.im/nicoulaj/rainbow.svg\n   :target: https://gitter.im/nicoulaj/rainbow\n   :alt: gitter chat\n\n----\n\n**Easily colorize commands output using patterns.**\n::\n\n  rainbow [ --COLOR=PATTERN ... | --conf CONF ] COMMAND\n\n\nExamples\n--------\n\nUsing the command line\n~~~~~~~~~~~~~~~~~~~~~~\nPrepend ``rainbow`` with ``--COLOR=PATTERN`` associations to your\ncommand, for example:\n\n-  Tail some log file with lines containing ``ERROR`` in red:\n   ::\n\n     rainbow --red=ERROR tail -f /var/log/my.log\n\n-  You can also pipe commands output into rainbow:\n   ::\n\n     tail -f /var/log/my.log | rainbow --red=ERROR\n\n\nUsing configs\n~~~~~~~~~~~~~\n\nRainbow 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:\n\n-  Colorize the ``diff`` command output using the builtin config:\n   ::\n\n     rainbow diff file1 file2\n\n-  Start my custom command, using ``~/.rainbow/mycommand.cfg``:\n   ::\n\n     rainbow mycommand\n\nThe syntax for writing configs is straightforward, see the\n`builtin configs \u003chttps://github.com/nicoulaj/rainbow/blob/master/rainbow/config/builtin\u003e`_\nfor examples. See also the `commands support table \u003chttps://github.com/nicoulaj/rainbow/blob/master/CONTRIBUTING.md\u003e`_.\n\n\nInstallation\n------------\n\nUsing packages\n~~~~~~~~~~~~~~\n\n============================================  ============================================\n System                                        Installation instructions\n============================================  ============================================\n Debian / RPM based                            `rainbow repository \u003chttps://software.opensuse.org/download.html?project=home%3Anicoulaj%3Arainbow\u0026package=rainbow\u003e`_ (`sources here \u003chttps://build.opensuse.org/package/show/home:nicoulaj:rainbow/rainbow\u003e`_)\n Arch Linux                                    `AUR/rainbow \u003chttps://aur.archlinux.org/packages/rainbow\u003e`_ / `AUR/rainbow-git \u003chttps://aur.archlinux.org/packages/rainbow-git\u003e`_\n pip                                           `PyPI: rainbow \u003chttps://pypi.org/project/rainbow\u003e`_\n============================================  ============================================\n\n\nBuilding from sources\n~~~~~~~~~~~~~~~~~~~~~\n\nYou can build from sources this way:\n\n::\n\n    git clone git://github.com/nicoulaj/rainbow.git\n    cd rainbow\n    python setup.py build install --user\n\n\nContributing\n------------\n\nContributions are welcome, please see `CONTRIBUTING \u003chttps://github.com/nicoulaj/rainbow/blob/master/CONTRIBUTING.md\u003e`_.\n\n\nLicense\n-------\n\nThis project is a fork of `Linibou's colorex \u003chttp://bitbucket.org/linibou/colorex\u003e`_.\nIt is is released under the terms of the `GNU General Public\nLicense \u003chttp://www.gnu.org/licenses/gpl.html\u003e`_. See ``COPYING`` for\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicoulaj%2Frainbow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicoulaj%2Frainbow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicoulaj%2Frainbow/lists"}