welbornprod / ccat Goto Github PK
View Code? Open in Web Editor NEWColorized cat command in Python. Uses Pygments to do automatic syntax highlighting.
Colorized cat command in Python. Uses Pygments to do automatic syntax highlighting.
I can ccat a file directly:
ccat.py file.log
buy I get an error when piping to ccat.py"
tail file.log | ccat.py
or even the basic usage example :
echo "import os" | ccat.py
The errors I get:
Traceback (most recent call last):
File "/usr/local/bin/ccat.py", line 1044, in <module>
mainret = main(docopt.docopt(USAGESTR, version=VERSIONSTR))
File "/usr/local/bin/ccat.py", line 100, in main
return 0 if (print_files(config) and save_config(config)) else 1
File "/usr/local/bin/ccat.py", line 446, in print_files
if not set_lexer(filename, config):
File "/usr/local/bin/ccat.py", line 634, in set_lexer
ext = os.path.splitext(filename)[-1].lower()
File "/usr/lib/python3.7/posixpath.py", line 122, in splitext
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
PyPI ccat is a blockchain package
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.