Skip to main content

Test-Driven Data Analysis (TDDA)

The tdda package provides Python support for test-driven data analysis (1-page summary, blog, book).

Features

  • Reference Testing (tdda.referencetest): extensions to unittest and pytest for testing data analysis pipelines. Supports file-based comparisons, semantic equivalence, automatic rewriting of reference results, and test tagging.

  • Automatic Test Generation (tdda gentest): generates reference tests for any command-line script or program (Python, R, shell, Makefile, ...). "Gentest writes tests, so you don't have to."™

  • Constraints (tdda.constraints): discovers constraints from Pandas DataFrames, Parquet files, flat files, and relational databases; verifies new data against those constraints; detects failing records.

  • Regular Expression Inference (tdda.rexpy): automatically infers regular expressions from a column of string data.

  • Data Diff (tdda diff): compares data frames in Parquet or flat files and reports differences in a visual format.

  • Serial Format (tdda.serial): documents CSV and flat-file formats in .serial metadata files for accurate, portable reading and writing. Supports conversion to/from CSVW and Frictionless metadata.

  • Utility Functions (tdda.utils): Unicode normalization (Normal Form TK), glyph counting, and RFC 9839 support.

Documentation

Full documentation: tdda.readthedocs.io

Installation

pip install tdda

To upgrade an existing installation:

pip install -U tdda

Source installation

git clone https://github.com/tdda/tdda.git
cd tdda
pip install .

Optional database support

pip install pygresql                  # PostgreSQL
pip install mysql-connector-python   # MySQL/MariaDB
pip install pymongo                  # MongoDB

Testing

tdda test

Resources

Authors

  • Nick Radcliffe
  • Simon Brown

Metadata

Release files for tdda 3.3.1

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

Source distribution (sdist)

Source distribution for tdda 3.3.1
File Size Uploaded Provenance Actions
tdda-3.3.1.tar.gz 19.5 MB Without provenance Details for tdda-3.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 39.8 MB

Release files / tdda-3.3.1.tar.gz

Download URL tdda-3.3.1.tar.gz
Size 19.5 MB
Tags Source
SHA-256 checksum
How to use checksums
c4f77b09d70d13b3d4a0792acfb9eee9fd1a4e924b3a2d85a62a1fc57013cc91
BLAKE2b-256 checksum
How to use checksums
16e5fba4a1ae62a5ff9ff7608a80ab6242762a74ca84d5347de70a2e0884e15b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / tdda-3.3.1-py3-none-any.whl

Download URL tdda-3.3.1-py3-none-any.whl
Size 20.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5c689a002c5dedc840b3dc19b663805499fe89a9f315bb169f82c6bdf00d5abc
BLAKE2b-256 checksum
How to use checksums
f0c0c18277745e5cb1ce7731a8100726ed406a786a88d154d9b88639f5104796
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for tdda 3.3.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

3.3.1 This release

2 release files No provenance

0.2.3

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