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.9.tar.gz (203.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.9-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tab_cli-0.1.9.tar.gz
Algorithm Hash digest
SHA256 bfa05a9e1a1b4fb95f3b35d367347804b2863c76fa8225a527fbd5872ba334b9
MD5 09ccf7c04034ca97308855a49defae97
BLAKE2b-256 5b04542ab1d99b0ea485283e18618ce48bc034a047c5e3640840d4a41fd67a90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tab_cli-0.1.9-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

Hashes for tab_cli-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb5d1ce5df49c25574b76cf42ea8fa5fa48395efd62d503333b4dd862738f82
MD5 3b2394d3af812d9fb4df21141b97bec1
BLAKE2b-256 0ffcfd30ec607f5b4928acfb88f13636a076a52315feef8f5f6102625ab92975

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