A CLI tool for tabular data
Project description
tab
A CLI tool for viewing, querying, and converting tabular data files. Reads CSV, TSV, JSON Lines, Parquet, and Avro -- locally or from S3, GCS, and Azure Blob Storage.
pip install tab-cli
Documentation: tongfei.me/tab
Quick look
View any tabular file
tab view data.csv
Query with SQL
The table is always available as t:
tab view --sql 'SELECT * FROM t WHERE Metric_A_Value > 80' data.csv
Reshape rows with JMESPath
tab view --jp '{id: participant.id, city: profile.address.city}' data.parquet
Convert between formats
tab convert data.csv data.parquet
tab convert data.parquet data.jsonl -o jsonl
tab convert data.csv output_dir/ -o parquet -n 4 # partitioned
Concatenate files
tab cat part1.csv part2.csv part3.csv -o jsonl > combined.jsonl
Inspect schema and summary
tab schema data.parquet
tab summary data.parquet
Read from stdin
curl -s https://example.com/data.csv | tab view -i csv -
Read from cloud storage
tab view s3://bucket/path/data.parquet
tab view gs://bucket/path/data.csv
tab view az://container/path/data.jsonl
Install cloud extras as needed:
pip install 'tab-cli[s3]' # AWS S3
pip install 'tab-cli[gs]' # Google Cloud Storage
pip install 'tab-cli[az]' # Azure Blob Storage
Supported formats
- csv
- tsv
- jsonl
- parquet
- avro
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
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 tab_cli-0.1.8.tar.gz.
File metadata
- Download URL: tab_cli-0.1.8.tar.gz
- Upload date:
- Size: 202.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95c1373d444f0bdfede93eb4d54fe02c0eb6e1bdd50b2e8935e26e87f347005b
|
|
| MD5 |
80800db9b16f5d09ff1d863169d84b2a
|
|
| BLAKE2b-256 |
2d7810c8f04aa3c5060ee742123e45763ee3fae98911e0a9a50053d964a28875
|
File details
Details for the file tab_cli-0.1.8-py3-none-any.whl.
File metadata
- Download URL: tab_cli-0.1.8-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9af59ebd4426f5b0b6f01aa4355946b0af206082c6413026a7ce033f531a832
|
|
| MD5 |
eaead7f76fd0d321c70411997b1faf0b
|
|
| BLAKE2b-256 |
be262823d12aa210050bf8f77e70c5ef5fa021548f469e25e146b35d7440544c
|