Skip to main content

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

Simple rainbowcsv output

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

Simple rainbowcsv output

You can also pipe to less if you display raw control characters, via less -r or less -R

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rainbowcsv-1.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

rainbowcsv-1.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file rainbowcsv-1.0.2.tar.gz.

File metadata

  • Download URL: rainbowcsv-1.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for rainbowcsv-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d3f3e9a1921ab04fb36a57c3d3368e763e5f7dcfc3627fed366460a71d52a35d
MD5 ca2f49633e920e236d52b592762b267b
BLAKE2b-256 cdc121ebc511a17d9e550f82bba5457e8bbdf4e9d8980d71333ab175f80503a1

See more details on using hashes here.

File details

Details for the file rainbowcsv-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: rainbowcsv-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for rainbowcsv-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bade3d0a7eefed8f65e96c4891c7400ad45d3c3012558b85243b8047e7af384f
MD5 34c1085fef64d122288851f623215480
BLAKE2b-256 41f5555e615993e6a35fb36d2233739d556996557ba7bfc79823fbe3e395eeaa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page