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
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
csv_mini-0.1.0.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
096232dcc707a929dd99dba1cd64d6bff4b41cb6c0b68c9ab3a1cd769283ac65
|
|
| MD5 |
bb286386aaf29bb0d9ce63c4f8867df1
|
|
| BLAKE2b-256 |
b10f64eb8c6a119c4c0ae2ea2b7241e16c1f68b46daa6caf53af9997680d7685
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e55fe652b13ee9e65d722ceff88d098f00ac0e3434d8dcc43185d36366ac729
|
|
| MD5 |
da0c3c5dd12155fcab62c7657e9f2f52
|
|
| BLAKE2b-256 |
e24666485823381384ee493e1e6bbd0cc4e12d9f2ce492fe219c7e671115d445
|