Show csv in rainbow colors
Project description
rainbowcsv
Outputs csv columns in easy-to-discern colors in the terminal.
Installation
pip install rainbowcsv
Usage
Use on a file
rainbowcsv path/to/file.csv
or use with pipes
curl https://raw.githubusercontent.com/dannysepler/rainbowcsv/main/resources/movies.csv | rainbowcsv
Options
rainbowcsv --help
How it works
rainbowcsv
uses the colorama library to wrap csv columns with color escape sequences.
Usage advice
csvkit is a lovely library, and we recommend using this in conjunction with it.
The csvlook
command doesn't play well with rainbow csv, because it doesn't ignore color-changing characters. That's why the --table
(-t
for short) option is available in rainbowcsv
, it creates a similar-looking table.
curl https://raw.githubusercontent.com/dannysepler/rainbowcsv/main/resources/movies.csv | rainbowcsv --table
You can also pipe to less
if you display raw control characters, via less -r
or less -R
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rainbowcsv-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bade3d0a7eefed8f65e96c4891c7400ad45d3c3012558b85243b8047e7af384f |
|
MD5 | 34c1085fef64d122288851f623215480 |
|
BLAKE2b-256 | 41f5555e615993e6a35fb36d2233739d556996557ba7bfc79823fbe3e395eeaa |