Skip to main content

qualipilot

Qualipilot runs configurable data-quality checks, probabilistic record linkage, and named-entity extraction over tabular data. Quality checks return typed JSON, HTML, or Markdown reports. CSV, Parquet, JSONL, and NDJSON are supported across several dataframe backends. Columns must contain scalar values; flatten nested arrays, maps, and objects before checking. LLM-generated narrative is optional and disabled by default.

The project is beta software. Validate check semantics and performance against representative data before using report severities as a release gate.

Install

Python 3.11-3.13 is supported.

pip install qualipilot
pip install "qualipilot[bedrock]"       # AWS Bedrock
pip install "qualipilot[ollama]"        # Ollama
pip install "qualipilot[openai]"        # OpenAI-compatible endpoint
pip install "qualipilot[dask]"          # Dask engine
pip install "qualipilot[duckdb]"        # DuckDB engine
pip install "qualipilot[gz]"            # GroundZero managed LLM connections
pip install "qualipilot[linking]"       # probabilistic linkage
pip install "qualipilot[ner]"           # spaCy NER adapter
pip install "qualipilot[spark]"         # Spark engine

From a source checkout, ./install.sh and .\install.ps1 create a local virtual environment. Pass --dev or -Dev for editable development installation. The all extra includes Spark; install only the extras you use when possible.

CLI

qualipilot check data.csv \
  --engine polars \
  --range amount=0,100000 \
  --output reports/data.quality.html \
  --fail-on warn

--output supports .json, .html, and .md. --fail-on returns a nonzero exit code when a result reaches the selected severity, which makes the command suitable for CI gates. Run qualipilot check --help for the complete option set.

Configuration can also be stored in YAML or JSON:

qualipilot check examples/sample.csv --config examples/config.yaml

See examples/config.yaml for the configuration model. CLI-only controls such as --fail-on are not configuration fields. The sample deliberately contains range and freshness failures, so this command demonstrates the default nonzero quality gate.

Python

import pandas as pd

from qualipilot import DataQualityChecker, QualipilotConfig
from qualipilot.models.config import CheckConfig, ColumnRange

frame = pd.read_csv("orders.csv")
config = QualipilotConfig(
    engine="polars",
    checks=CheckConfig(
        column_ranges={"amount": ColumnRange(min=0, max=100_000)}
    ),
)

with DataQualityChecker(frame, config) as checker:
    report = checker.run()
print(report.to_json())

The context manager releases engine-owned resources such as DuckDB connections. Dataframes and externally supplied Spark sessions remain owned by the caller.

GroundZero runtimes

The Spark and DuckDB runtime sessions expose the same thin adapter. Pass the name of a managed LLM connection; Qualipilot selects its provider from that connection's type and returns a QualityReport:

from GZ.SparkUtils import sparkSession

spark = sparkSession("testapp", "FATAL")
df = spark.executeSnowflake("SourceSnowflake", "SELECT * FROM orders")
report = spark.runDataQualityChecks(
    df=df,
    connectionName="TestDataQuality",
)

# These variants load data through the same underlying Spark session.
table_report = spark.runTableDataQualityChecks(
    tableName="analytics.orders",
    connectionName="TestDataQuality",
)
query_report = spark.runQueryDataQualityChecks(
    query="SELECT * FROM analytics.orders WHERE status = 'open'",
    connectionName="TestDataQuality",
)

spark.saveDataQualityReport(report, "reports/orders.json")

The runtime adapter passes its underlying Spark session to Qualipilot. The DuckDB adapter exposes the same methods and passes its existing DuckDB connection, so neither runtime creates or closes a caller-owned session.

The direct API accepts the same connection name:

from qualipilot import DataQualityChecker, LLMConfig, QualipilotConfig

report = DataQualityChecker(
    df,
    QualipilotConfig(llm=LLMConfig(connection_name="TestDataQuality")),
).run()

Checks

Check Default Purpose
missing_values on null counts and percentages
duplicates on duplicate rows, optionally over a subset
data_types on column dtype inventory
outliers on numeric IQR outliers
ranges on configured numeric bounds
cardinality on distinct counts and optional top values
freshness off timestamp age and future timestamps
linkage off configured probabilistic duplicate detection

Each check produces a CheckResult with an ok, warn, or error severity, execution status, duration, and JSON-safe payload.

Use checks.severity_overrides to replace the severity of a built-in check when it finds a problem, for example {"missing_values": "error", "ranges": "warn"}. Overrides do not turn successful checks into failures and cannot hide execution failures. Outlier payloads identify whether their quantiles are exact or approximate; Spark also reports its 0.001 relative error.

expected_dtypes accepts portable families: integer, float, decimal, numeric, boolean, string, categorical, binary, date, datetime, time, and duration. Native engine dtype names remain supported with a case-insensitive exact match.

Engines

Engine Extra Notes
Polars core default for paths and ordinary in-memory frames
Pandas core explicit pandas execution
DuckDB duckdb SQL-backed execution
Dask dask partitioned dataframe execution
Spark spark requires a working Java/Spark environment

engine="auto" selects by input type; paths and pandas frames currently resolve to Polars. Backend parity is covered by tests, but memory use and runtime depend on file format, check mix, and data distribution. Use the scripts in scripts/ to measure your own workload.

Optional LLM reporting

Available direct providers are bedrock, ollama, and openai (for compatible Chat Completions and Responses endpoints). LLMConfig(connection_name="...") selects gz automatically and resolves the managed connection's actual provider at call time. Managed Anthropic, AWS Bedrock, Azure OpenAI, Cohere, Fireworks AI, Gemini, Hugging Face, OpenAI, Together AI, and xAI connections are supported, including complete Chat Completions and Responses endpoint URLs. The provider receives a compact summary of the quality report: column names and dtypes, aggregate check metrics, and check execution status. Input paths, source versions, exception messages, row samples, and top values are excluded. Keep the default none for fully local checks.

Bedrock requires an explicit, currently available model ID:

qualipilot check data.csv \
  --llm bedrock \
  --model "$BEDROCK_MODEL_ID" \
  --region us-east-1

The caller needs bedrock:InvokeModel for the selected foundation model or inference profile. Model availability and identifiers vary by account and region; do not bake a sample ID into long-lived configuration.

For a local Ollama example:

mkdir -p reports
export HOST_UID="$(id -u)" HOST_GID="$(id -g)"
docker compose -f docker/docker-compose.yml build qualipilot
docker compose -f docker/docker-compose.yml run --rm qualipilot
docker compose -f docker/docker-compose.yml down

The compose stack binds Ollama only to 127.0.0.1, pulls the configured model before the check starts, and does not mount cloud credentials.

Record linkage

Install the linking extra and provide explicit blocking and comparison rules:

qualipilot link customers.csv \
  --id customer_id \
  --compare "name:fuzzy:0.92,0.75" \
  --compare "postcode:exact" \
  --block "postcode" \
  --threshold 0.9 \
  --survivor-sort "updated_at:desc" \
  --output reports/customers.linkage.json \
  --deduplicated-output customers.deduplicated.parquet

String match keys are normalized for Unicode, case, and whitespace by default. The cleaned output contains one survivor per cluster, fills missing fields from duplicate records, and is accompanied by lineage and a metadata-only audit written last as a commit marker. Consumers should verify its output SHA-256 before reading the cleaned file. Blocking, thresholds, survivor ranking, and conflict resolution remain domain-specific. Review the linkage guide before using clusters operationally.

Named-entity recognition

NER is a separate, optional local pipeline rather than a data-quality check. Install spaCy through the ner extra and install a pipeline that matches your language and domain. Qualipilot never downloads or silently selects a model:

pip install "qualipilot[ner]"
python -m spacy download en_core_web_sm  # convenient for local evaluation

qualipilot ner customer_notes.parquet \
  --text note \
  --id customer_id \
  --model en_core_web_sm \
  --output reports/customer-notes.entities.json

The audit contains source and model provenance, row identifiers, labels, entity text, and half-open character offsets. The Python API batches documents through SpacyEntityRecognizer.extract_many(). Statistical NER is domain-dependent, so evaluate the pinned pipeline against representative labeled data before using its output. See the NER guide.

Deployment and development

The repository includes locked Docker builds and a Terraform module for an S3-triggered Lambda deployment. The module deploys an ECR image by digest, limits Lambda reads to incoming/, writes reports below reports/, and routes exhausted asynchronous invocations to SQS. Follow the deployment guide; the first apply intentionally creates the ECR repository before Lambda.

./install.sh --dev
make check

CI runs Ruff, strict MyPy, tests with coverage, dependency audit, package build/smoke tests, Terraform validation and mock-plan tests, installer parsing, and container smoke tests.

Additional documentation:

License

MIT.

Metadata

Release files for qualipilot 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qualipilot 3.3.0
File Size Uploaded Provenance Actions
qualipilot-3.3.0.tar.gz 93.6 kB With provenance Details for qualipilot-3.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qualipilot 3.3.0
File Interpreter ABI Platform Actions
qualipilot-3.3.0-py3-none-any.whl Python 3 none any Details for qualipilot-3.3.0-py3-none-any.whl

Total release size: 214.6 kB

Release files / qualipilot-3.3.0.tar.gz

Download URL qualipilot-3.3.0.tar.gz
Size 93.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3e55228d4a4a3db308cbcaa823828b55fcdd234006f22efdbf4f62b0cad8a8ac
BLAKE2b-256 checksum
How to use checksums
00a430ad19db0cb38bd573d5be769ee6eeb3f8731a1904d24c08038533fa3c4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.

Transparency log

Release files / qualipilot-3.3.0-py3-none-any.whl

Download URL qualipilot-3.3.0-py3-none-any.whl
Size 121.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2990bf80dd65d4ba5be7f8ae3a21bfc7ea130ab00f5b5e608adc2b4126e95b07
BLAKE2b-256 checksum
How to use checksums
c45862a32296f572d7f9a4dfad4c9785a88d554ee3a3ce7431618e3fdd37e1ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.

Transparency log

Security for qualipilot 3.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for qualipilot-3.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page