Socket
Socket
Sign inDemoInstall

pyccat

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyccat

Colored Cat is a syntax highlighter file reader.


Maintainers
1

Colored Cat

Build Build Downloads Supported Versions Contributors PyPI version License: GPL-3.0

CCat officially supports Python 3.8+.

Main features

  • Read and highlight text and code files
  • Filter to display only selected lines
  • Multiple highlight styles
  • Save output at image (png/jpg) file using ansi2image lib.

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

Read a file

ccat /tmp/teste.json

Sample 001

Read a file without table

ccat -nt /tmp/teste.json

Sample 002

Just highlight the file

ccat -s /tmp/teste.json

Sample 003

Display only some lines

ccat -l 18:37 teste.json

Sample 004

ccat -l 18:23,35:37 teste.json

Sample 004

Display only some lines and highlight specific lines

ccat -l 18:37 -hl 18:23,35:37 teste.json

Sample 004

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc