https://github.com/exhuma/strec
Stream Coloriser
https://github.com/exhuma/strec
Last synced: 8 months ago
JSON representation
Stream Coloriser
- Host: GitHub
- URL: https://github.com/exhuma/strec
- Owner: exhuma
- Created: 2022-01-02T12:08:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-16T15:57:02.000Z (over 4 years ago)
- Last Synced: 2025-01-02T05:02:56.846Z (over 1 year ago)
- Language: Python
- Size: 521 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
Awesome Lists containing this project
README
Stream Coloriser
================
.. image:: https://readthedocs.org/projects/strec/badge/?version=latest
:target: https://strec.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
*strec* allows to colorise a stream (like ``stdout`` or ``stderr``) by mapping
regular expression groups to color names.
See `the full documentation`_ for more information.
Possible Use-Cases
------------------
* Colorise log-files during monitoring::
tail -f /var/log/apache/access.log | strec -c /path/to/apache-colors.yml
* Apply coloring rules to existing commands::
strec -- ls -l
* Alias existing commands with their colorised wrapper::
alias ls="strec -- ls"
.. _the full documentation: https://strec.readthedocs.io/en/latest/?badge=latest