Colored Cat
![License: GPL-3.0](https://img.shields.io/pypi/l/pyccat.svg)
CCat officially supports Python 3.8+.
Main features
Installation
pip3 install --upgrade pyccat
Help
ccat -h
positional arguments:
[filename] Filename
Options:
-s, --simple just colorize the file content
-nt, --no-tabulated do not show tab
--style [style name] pygments lib style name. (default: gruvbox-dark). See more at: https://pygments.org/styles/
-l [filter], --lines [filter] return only selected lines (ex1: 5:13 or ex2: 50: or ex3: :100)
-hl [filter], --highlight-lines [filter] highlight only selected lines (ex1: 5:13 or ex2: 50: or ex3: :100)
--output-img [filename] image output file.
-h, --help show help message and exit
-v Specify verbosity level (default: 0). Example: -v, -vv, -vvv
--version show current version
Executing
Regular linux cat
![cat](https://github.com/helviojunior/pyccat/raw/HEAD/images/regular_cat.jpg)
Read a file
ccat /tmp/teste.json
![Sample 001](https://github.com/helviojunior/pyccat/raw/HEAD/images/sample_001.jpg)
Read a file without table
ccat -nt /tmp/teste.json
![Sample 002](https://github.com/helviojunior/pyccat/raw/HEAD/images/sample_002.jpg)
Just highlight the file
ccat -s /tmp/teste.json
![Sample 003](https://github.com/helviojunior/pyccat/raw/HEAD/images/sample_003.jpg)
Display only some lines
ccat -l 18:37 teste.json
![Sample 004](https://github.com/helviojunior/pyccat/raw/HEAD/images/sample_004.jpg)
ccat -l 18:23,35:37 teste.json
![Sample 004](https://github.com/helviojunior/pyccat/raw/HEAD/images/sample_005.jpg)
Display only some lines and highlight specific lines
ccat -l 18:37 -hl 18:23,35:37 teste.json
![Sample 004](https://github.com/helviojunior/pyccat/raw/HEAD/images/sample_006.jpg)