Skip to main content

A CLI tool for tabular data

Project description

tab

A fast CLI tool for viewing, querying, and converting tabular data files.

Supported Formats

  • Parquet
  • CSV
  • TSV
  • Jsonl

Usage

View data

Display rows from a tabular data file:

tab view data.parquet
tab view data.csv --limit 20
tab view data.tsv --skip 100 --limit 50

Output to different formats:

tab view data.parquet -o jsonl
tab view data.parquet -o csv

Schema

Display the schema (column names and types):

tab schema data.parquet

Summary

Display summary information about a file:

tab summary data.parquet

SQL queries

Run SQL queries on your data. The table is referenced as t:

tab sql "SELECT * FROM t WHERE age > 30" data.parquet
tab sql "SELECT name, COUNT(*) FROM t GROUP BY name" data.csv

Convert

Convert between formats:

tab convert data.csv data.parquet
tab convert data.parquet data.jsonl -o jsonl

Write partitioned output:

tab convert data.csv output_dir/ -o parquet -n 4

Options

Common options

Option Description
-i Input format (parquet, csv, tsv, jsonl). Auto-detected from extension.
-o Output format (parquet, csv, tsv, jsonl).
--limit Maximum number of rows to display.
--skip Number of rows to skip from the beginning.

Convert options

Option Description
-n Number of output partitions. Creates a directory with part files.

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.0.tar.gz (7.2 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.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tab_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 084fd50df52fce94640a0e7263e1ee9374fdbf21b29a83d55c9157bcf3182e8a
MD5 da6757dcb1c0127ab6f6759291a32294
BLAKE2b-256 3f7ee03a9bff60361edd311243212f3148a99566fff3b800b2e83bf9fe400739

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tab_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd05681845326b001491855676113ab970646dfa430e4223d4bf72b717fa78aa
MD5 65847f164040b323ea9bc6db21e0127f
BLAKE2b-256 2ebc68f57eca475b4a0b83f50a5e2bdb237d3f7d48ce209d41a05dd715d4b055

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