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
Release files for csvq-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| csvq_cli-0.1.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| csvq_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / csvq_cli-0.1.0.tar.gz
| Download URL | csvq_cli-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce742a89e30b554e8e98754165cecf6caaf3ec504373cdd1433b0bdd445f1a6e
|
|
BLAKE2b-256 checksum How to use checksums |
ebacb1ea86f9c4f2112f6aa82e090edc18c3717af70cf67f5f592a0a36f84538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / csvq_cli-0.1.0-py3-none-any.whl
| Download URL | csvq_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b257141f76124ac7689186b6ee0c4fab5de5cd7a806d67404ef1886d0f8421d1
|
|
BLAKE2b-256 checksum How to use checksums |
557b7d0a859e3eb2269a5129a2182b41b501391eff8bec351500f3a11cb15b20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|