A decorator-first DataFrame contracts and validation library for Python. daffy lets you define data contracts as decorators on functions, supporting Pandas, Polars, PyArrow, and Modin DataFrames for lightweight pipeline validation.
Python data engineers use Daffy to add inline data quality assertions to pandas transformation functions — decorating a function with `@expect_column_not_null('id')` raises an exception if the output DataFrame violates the expectation. This brings data quality checks directly into the transformation code rather than requiring a separate validation framework.
A decorator-first DataFrame contracts and validation library for Python. daffy lets you define data contracts as decorators on functions, supporting Pandas, Polars, PyArrow, and Modin DataFrames for lightweight pipeline validation.
Yes, daffy is free to use.
daffy is listed under the Data Quality category on Python Data Engineering.
Details
Related
| Tool | Pricing | Rating | |
|---|---|---|---|
PE Petl Python ETL Package | Free | ★ 4.3 | → |
CE Cerberus Lightweight Data Validation | Free | ★ 4.5 | → |
VO Voluptuous Python Data Structure Validation | Free | ★ 4.3 | → |