Getting Started
Quick Start
Get up and running with the SDK and CLI in under 5 minutes
Featuresmith is designed to serve identical results whether you are running scripted pipelines in Python or triggering quick inspections in the terminal.
Python SDK Quick Start
Analyze a dataset and print quality findings:
python
import featuresmith as fs# 1. Load a tabular dataset (CSV, Parquet, Excel, or DataFrames)dataset = fs.load("customers.csv")print(f"Loaded {dataset.row_count} rows.")# 2. Extract deterministic statistical profilesprofile = fs.profile("customers.csv")# 3. Perform rule-based data quality & target leakage checksresult = fs.analyze("customers.csv", target_column="churn")for finding in result.findings: print(f"[{finding.severity.upper()}] {finding.title} in column '{finding.column_name}'") print(f" Reason: {finding.description}")CLI Quick Start
Verify dataset issues inside your shell:
bash
# Analyze a local CSV datasetfeaturesmith analyze customers.csv# Run leakage checks targeting the 'churn' columnfeaturesmith analyze customers.csv --target churn# Export findings to report.json in machine-readable formatfeaturesmith analyze customers.csv --format json --output report.jsonCLI Exit Codes
The CLI uses precise exit codes to facilitate pipeline integration and gating:
| Exit Code | Description |
|---|---|
| 0 | Clean — no rule violations detected at or above the threshold. |
| 1 | Findings detected — one or more rules triggered at or above threshold. |
| 2 | Invalid input — bad flags, missing arguments, or columns not in schema. |
| 3 | File load failure — file does not exist, or parser error. |
| 4 | Unexpected internal error (use --verbose for traceback). |