One command, three runtimes
Every implementation ships the same fairspec command. Pick the ecosystem you already use.
The same fairspec command
Python, TypeScript and Rust install one command with the same subcommands and options.
Library or command line only
fairspecbrings the library too;fairspec-terminaland@fairspec/terminalship just the CLI.Run without installing
uvx fairspecornpx fairspec@latestruns the latest version on demand.MCP server included
fairspec mcpstarts the MCP server from the same install.
Install the fairspec command into an isolated environment with uv.
uv tool install fairspecNeed only the command line, without the library? Install fairspec-terminal instead.
Commands
Commands are grouped by what they operate on: datasets, tables, JSON data, and files.
Same command, both runtimes
The Python and TypeScript CLIs take the same arguments and print the same report.
$ fairspec table validate broken.csv --schema schema.json
✖ Value of the cell x in column id of row 3 is not integer
✖ Value of the cell 2024-02-30 in column joined of row 2 is not date$ fairspec table validate broken.csv --schema schema.json
✖ Value of the cell x in column id of row 3 is not integer
✖ Value of the cell 2024-02-30 in column joined of row 2 is not dateBuilt for scripts and CI
Every command takes local paths or URLs and prints JSON with --json.
$ 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 table validate data.csv --check "positive-price=price > 0"$ fairspec file describe data.csv --hash-type sha256$ fairspec mcp
Local paths or URLs
Point any table, file or dataset command at a file on disk or a remote URL.
JSON for pipelines
Add
--jsonand the result is data your script or CI job can read, not prose.Custom checks
Add rules the schema cannot express with
--check name=condition: a SQL condition every row must meet, or an aggregate over the whole table.Dialects on the command line
Override what inference guesses with
--delimiter,--header-rowsor--sheet-name.Interactive sessions
fairspec table scriptandfairspec dataset scriptopen a scripting session on the loaded data.
Script your data. Check it in CI.
Read the full command reference, or hand the same commands to your AI assistant.