Python and TypeScript

Fairspec CLI Tool

Bring the Fairspec data management framework to your shell. Validate datasets, infer schemas, and query tables — from scripts, CI pipelines, or an interactive terminal.

Terminal
$fairspec table infer-schema members.csv --json
{
  "properties": {
    "id": { "type": "integer" },
    "name": { "type": "string" },
    "joined": { "type": "string", "format": "date" },
    "score": { "type": "number" }
  }
}

Installation

Both implementations ship the same fairspec command. Pick the ecosystem you already use.

Install the fairspec command into an isolated environment with uv.

uv tool install fairspec

Need only the command line, without the library? Install fairspec-terminal instead.

Usage

Every command takes local paths or URLs and prints JSON with --json. Try one of these.

fairspec dataset infer *.csv --json > dataset.json
fairspec dataset validate dataset.json
fairspec table describe data.csv
fairspec table preview data.csv
fairspec table query data.csv "SELECT * FROM self WHERE age > 25"
fairspec table validate data.csv --json
fairspec file describe data.csv --hash-type sha256
fairspec mcp
TypeScript only