CSV/TSV query, filter, transform, and convert from the command line
Project description
csvq-cli
CSV/TSV query, filter, transform, and convert from the command line.
Install
pip install csvq-cli
Commands
| Command | Description |
|---|---|
csvq head |
Show headers and preview rows |
csvq count |
Count rows |
csvq select |
Select specific columns |
csvq filter |
Filter rows (==, !=, >, <, contains, matches, etc.) |
csvq sort |
Sort by column |
csvq unique |
Unique values with counts |
csvq stats |
Numeric stats (min, max, mean, median, sum) |
csvq grep |
Search rows matching regex |
csvq sample |
Random sample of rows |
csvq merge |
Merge multiple CSV files |
csvq to-json |
Convert to JSON |
csvq to-tsv |
Convert to TSV |
csvq to-md |
Convert to Markdown table |
Examples
# Preview a file
csvq head data.csv
# Filter and convert
csvq filter data.csv status == active --json
# Stats on a column
csvq stats sales.csv revenue
# Grep across all columns
csvq grep data.csv "error|warning"
# Select columns and sort
csvq select data.csv name email | csvq sort - name
# Pipe from stdin
cat data.csv | csvq count
All commands support --json output. Auto-detects delimiter (CSV, TSV, semicolon, pipe).
For AI Agents
See SKILL.md for agent-optimized documentation.
License
MIT
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
csvq_cli-0.1.0.tar.gz
(5.7 kB
view details)
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 csvq_cli-0.1.0.tar.gz.
File metadata
- Download URL: csvq_cli-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce742a89e30b554e8e98754165cecf6caaf3ec504373cdd1433b0bdd445f1a6e
|
|
| MD5 |
09fba4d3e86891f25c0f1e94c272ae04
|
|
| BLAKE2b-256 |
ebacb1ea86f9c4f2112f6aa82e090edc18c3717af70cf67f5f592a0a36f84538
|
File details
Details for the file csvq_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: csvq_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b257141f76124ac7689186b6ee0c4fab5de5cd7a806d67404ef1886d0f8421d1
|
|
| MD5 |
bf4d4e81073feb350d42f350599b9977
|
|
| BLAKE2b-256 |
557b7d0a859e3eb2269a5129a2182b41b501391eff8bec351500f3a11cb15b20
|