Crates.io | tass |
lib.rs | tass |
version | 0.10.1 |
source | src |
created_at | 2020-11-28 02:45:40.421807 |
updated_at | 2024-08-04 02:24:24.770844 |
description | A pager for tabular data |
homepage | |
repository | https://github.com/asayers/tass |
max_upload_size | |
id | 317313 |
size | 2,915,651 |
A pager for tabular data
tass
- it's like less
, but for tables! It can read CSV/TSV and parquet
files. It looks like this:
You can see tass's schema inference in action here. The fourth and fifth columns only contains a small number of unique values, so tass colour-codes them automatically. The columns to the right of those are numerical, so tass right-aligns them and shows negative values in red.
This demo shows data being piped into (an older version of) tass. You can also open files which are still being appeanded to, and new rows will appear as the file grows.
If you already have rust, you can install tass like this:
$ cargo install tass
You can pass a filename, or pipe data to stdin:
$ tass mydata.csv
$ cat mydata.csv | tass
Key | Action |
---|---|
Up/j, PageUp | Move up one row, page |
Down/k,PageDown | Move down one row, page |
Left/h | Move left one column |
Right/l | Move right one column |
Home, End | Move to start/end of file |
number g | Move to line $number |
f | Move to end and auto-scroll as new rows come in |
/, ? | Search, reverse-search for string |
n, N | Jump to next, previous match |
q/Esc | Quit |
Tool | Functionality | Filetypes | Loads whole file into memory | Streaming |
---|---|---|---|---|
tass | ⭐ Viewing data, basic searching | CSV/TSV, parquet | no 😌 | ✔️ |
csvlens | ⭐ Similar to tass | CSV/TSV | no 😌 | ✔️ |
VisiData | ⭐⭐ Summary stats, plots, etc. | CSV/TSV, parquet, JSON, ... | yes 😱 | ✔️ |
Excel/Calc/Numbers/Google Sheets | ⭐⭐⭐ It's a spreadsheet! | CSV/TSV, xls, ods, ... | yes 😱 | |
Pandas/Polars/DataFrame.jl | ⭐⭐⭐ It's a dataframe library! | CSV/TSV, parquet, ... | no 😌 |
For manipulating data, my advice is to use a spreadsheet (for small datasets) or dataframe library (for larger datasets). Sometimes you just want to quickly inspect the contents of a file though, and that's what tass is for.
Here are some more tips for working with large CSV files: