Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

qsv

$ qsv Community Low Risk
dathere · Database & Data · MIT · macos / linux / windows

qsv (forked and heavily expanded from xsv) packs 60+ composable commands for indexing, validating, joining, profiling (stats), querying (sqlp via Polars), and converting CSV/Parquet/JSON/Excel files at blazing speed.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install qsv
CLI vs MCP Decision Hybrid (CLI + MCP)

qsv runs deterministic data profiling and SQL queries locally in milliseconds; dathere/qsv even ships a qsvmcp MCP Server flavor for MCP hosts.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports qsv json, --format json on sqlp, --capabilities self-inspection, and clean POSIX piping.

  • Supports qsv json, --capabilities, and --format json
Trust & Safety 23 / 25

Stream-oriented local tool that writes to stdout unless -o or split output flags are explicitly provided.

  • Local read-only stdout default; explicit -o output flag
Setup & Portability 13 / 15

Available via Homebrew, cargo, and prebuilt binaries, though binary flavors (qsv, qsvlite, qsvdp) vary in compiled features.

  • Cross-platform Rust binary; multiple feature flavors (qsv, qsvlite)
Utility & Efficiency 14 / 15

Massive 60+ command toolkit spanning profiling, JSON Schema validation, Polars SQL, and format conversion.

  • 60+ high-speed tabular wrangling subcommands
Maintenance & Lineage 8 / 10

Very actively maintained dathere/qsv repository under MIT license.

  • Active dathere/qsv repository
Docs & Verifiability 8 / 10

Detailed command docs, cookbook, and --help for every subcommand.

  • Official docs at qsv.dathere.com

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; operates on local data files and stdin/stdout streams.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# qsv Agent Rules
- Check `qsv --capabilities` first if relying on feature-gated commands like `sqlp` or `polars`.
- Run `qsv headers` and `qsv stats` before dumping raw slices.
- Pass `-o <output>` for transformed outputs rather than overwriting source files.

Agent-Ready Command Recipes

Safe Read-Only Queries

Profile CSV column types and stats
qsv stats data.csv --everything | qsv json

Generates detailed statistical profiles per column and serializes to JSON.

Run Polars SQL directly on a CSV and emit JSON
qsv sqlp data.csv "SELECT region, count(*) AS cnt FROM _t_1 GROUP BY 1" --format json

Executes fast Polars SQL against a CSV file and outputs JSON.

Controlled Writes & Previews

Validate CSV rows against a JSON Schema
qsv validate data.csv schema.json --valid valid.csv --invalid invalid.csv

Splits valid and invalid CSV records cleanly into separate output files.

Strengths for Agents

  • + 60+ composable commands handle profiling, Polars SQL, deduplication, and JSON Schema validation.
  • + qsv --capabilities lets agents verify compiled features upfront.
  • + Multi-threaded Rust performance scales to multi-GB CSVs.

Caveats & Pitfalls

  • ! Feature-gated commands (sqlp, luau, python) depend on which qsv binary flavor is installed (qsv vs qsvlite).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI