{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"tdda provides test-driven data analysis tools: reference testing for data pipelines, automatic test generation, constraint discovery and validation, regex inference, data diffing, and metadata documentation for CSV/flat files.","skillfed_tags":["data-validation","test-generation","constraint-discovery"],"use_cases":["Write reference tests for data transformation pipelines to catch regressions when code or data changes.","Automatically generate baseline tests from existing command-line scripts or programs without manual test writing.","Discover and enforce data quality constraints (e.g., non-null columns, value ranges) on incoming datasets.","Infer regex patterns from sample string data to validate or extract structured text fields.","Compare two versions of a dataset (Parquet or CSV) and report row-level and column-level differences visually.","Document CSV and flat-file formats in portable metadata files compatible with CSVW and Frictionless standards."],"what_it_does":"tdda is a Python framework for test-driven data analysis\u2014a methodology where you write tests for data pipelines before or alongside the analysis code itself. It extends unittest and pytest with reference testing (comparing outputs to stored baselines), automatic test generation from command-line scripts, and constraint-based validation. The package also includes utilities for discovering data constraints from existing DataFrames or files, inferring regular expressions from string columns, diffing data across formats, and documenting CSV schemas in portable metadata files.\n\nThe core use case is validating analytical pipelines: you define what \"correct\" data looks like (via constraints or reference outputs), then verify that new data conforms to those rules. It integrates with pandas, polars, and parquet, and can work with relational databases when optional drivers are installed. The reference testing mode is particularly useful for regression detection\u2014if your pipeline's output changes unexpectedly, the test catches it immediately.","worth_installing":"Yes, if you work with data pipelines and want automated validation. tdda fills a real gap between unit testing and data quality tools\u2014reference testing catches regressions cheaply, and constraint discovery is faster than manual validation rules. Active maintenance, permissive license, and no security vulnerabilities. The 12-package dependency footprint is substantial but standard for data work; install it in projects where pandas or polars are already present."},"id":"tdda","links":{"html":"https://skillfed.io/packages/tdda","md":"https://skillfed.io/packages/tdda.md","pypi":"https://pypi.org/project/tdda/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-13","license_spdx":null,"license_treatment":"permissive","name":"tdda","python_support":"supports_current","summary":"Test-driven data analysis: command-line tools and Python APIs for data validation, testing analytical pipelines, automatic test generation and more."},"popularity":{"monthly_downloads":293247,"position":7955,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.3.0"}
