Skip to main content

Display and filter CSV, pipe-delimited, or gzipped files in the terminal

Project description

csv-mini

A fast, minimal CSV viewer for the terminal. Displays CSV, pipe-delimited, and gzipped files with a sticky-header curses pager.

Install

pip install csv-mini

Or copy directly to ~/bin:

./install.sh

Usage

csv <file> [search] [-head N] [-tail N] [-cols COL1,COL2,...]

Examples:

csv data.csv                    # view entire file
csv data.csv "smith"            # filter rows containing "smith"
csv data.csv -head 20           # first 20 rows
csv data.csv -tail 10           # last 10 rows
csv data.csv -cols name,email   # select columns
csv data.csv.gz                 # gzipped files work too

Pager controls (activates automatically for large output):

Key Action
j/k or arrows scroll up/down
f/b or PgDn/PgUp page down/up
h/l or arrows scroll left/right
g/G jump to top/bottom
q or Esc quit

License

MIT

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

csv_mini-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csv_mini-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file csv_mini-0.1.0.tar.gz.

File metadata

  • Download URL: csv_mini-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for csv_mini-0.1.0.tar.gz
Algorithm Hash digest
SHA256 096232dcc707a929dd99dba1cd64d6bff4b41cb6c0b68c9ab3a1cd769283ac65
MD5 bb286386aaf29bb0d9ce63c4f8867df1
BLAKE2b-256 b10f64eb8c6a119c4c0ae2ea2b7241e16c1f68b46daa6caf53af9997680d7685

See more details on using hashes here.

File details

Details for the file csv_mini-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: csv_mini-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for csv_mini-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e55fe652b13ee9e65d722ceff88d098f00ac0e3434d8dcc43185d36366ac729
MD5 da0c3c5dd12155fcab62c7657e9f2f52
BLAKE2b-256 e24666485823381384ee493e1e6bbd0cc4e12d9f2ce492fe219c7e671115d445

See more details on using hashes here.

Supported by

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