Skip to main content

A CLI tool for tabular data

Project description

tab

pypi

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

tab view

Query with SQL

The table is always available as t:

tab view --sql 'SELECT * FROM t WHERE Metric_A_Value > 80' data.csv

tab view --sql

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


Download files

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

Source Distribution

tab_cli-0.1.7.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

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

tab_cli-0.1.7-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file tab_cli-0.1.7.tar.gz.

File metadata

  • Download URL: tab_cli-0.1.7.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for tab_cli-0.1.7.tar.gz
Algorithm Hash digest
SHA256 1436f81df64a2b35e278794937d55e9a1b8072df1a9492fb0205b2b68133d743
MD5 99f4b14458da8dcab2a452866bd38c28
BLAKE2b-256 cfad492cbce21580d7fc1db075ef8873b6289fe0b53ce4ee59b68e2c1d71bfdf

See more details on using hashes here.

File details

Details for the file tab_cli-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: tab_cli-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for tab_cli-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8c3ef8c0ef8a1385767a3e7434aa7437712b1a116a1b4f35dd8a839287caa5
MD5 d381e225a20f3695a05bd820152e3a29
BLAKE2b-256 4ea5c2ac3addf6e74c0cb3ab91466a328ea3ca1278a36570c85cbbde0e520129

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