Skip to main content

Great Expectations data quality plugin for the floe data platform

Project description

floe-quality-gx

Great Expectations data quality plugin for the floe data platform.

Overview

This plugin implements the QualityPlugin ABC using Great Expectations for data quality validation, supporting compile-time configuration validation and runtime quality checks.

Features

  • Compile-time configuration validation
  • Runtime quality check execution
  • Quality scoring with dimension weights
  • OpenLineage event emission for failures
  • Support for DuckDB, PostgreSQL, and Snowflake dialects

Installation

pip install floe-quality-gx

Quick Start

from floe_core.plugin_registry import get_registry
from floe_core.plugin_types import PluginType

# Get the Great Expectations plugin
registry = get_registry()
gx_plugin = registry.get(PluginType.QUALITY, "great_expectations")

# Run quality checks
result = gx_plugin.run_checks(
    suite_name="customers_quality",
    data_source="staging.customers",
)

if result.passed:
    print("All quality checks passed!")
else:
    print(f"Failed checks: {len([c for c in result.checks if not c.passed])}")

Configuration

Configure the plugin in your manifest.yaml:

plugins:
  quality:
    provider: great_expectations
    quality_gates:
      gold:
        min_test_coverage: 100
        required_tests: [not_null, unique]

Development

# Install in development mode
uv pip install -e ".[dev]"

# Run tests
pytest tests/unit/ -v

# Type checking
mypy src/

# Linting
ruff check src/

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

floe_quality_gx-0.1.0a1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

floe_quality_gx-0.1.0a1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file floe_quality_gx-0.1.0a1.tar.gz.

File metadata

  • Download URL: floe_quality_gx-0.1.0a1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for floe_quality_gx-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 039a63e8ff872c7cab9a62b490a701c3a32e4f4b3bcafccc03c02ce5a94698a4
MD5 54bc46025837e90b6bbb153cbcf1cd4d
BLAKE2b-256 c0c01218f1b0be8bf56224cc2d03d5581154b4aef96a2e1d51b532af13d9c680

See more details on using hashes here.

File details

Details for the file floe_quality_gx-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for floe_quality_gx-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 6204804ebb9fa907fd7f924031f1a37bee84760ec2b5a0ddcf77ecf156b1448d
MD5 4f0b1bd48d8ed8cb3d5d19c7f8c3b7df
BLAKE2b-256 3f8e782c6ab99ea7ab408809c42bacd4aeb47422e7649ba9d594102d0ac5a15b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page