Skip to main content

Lightweight reconciliation tests for DataFrames

Project description



Lightweight reconciliation tests for DataFrames

CI Build PyPI version PyPI license Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.

recx compares a candidate pandas.DataFrame against a baseline using declarative, column-level checks (exact equality, absolute tolerance, relative tolerance, or custom logic). It produces structured results you can assert on in tests or render as a concise textual summary.

Status: Early, experimental. API may change.

Install

With pip:

pip install recx

with uv:

uv add recx

Features

  • Index presence checks (missing + extra index values) out of the box
  • Built-in column checks:
    • EqualCheck -- exact equality (treats aligned NaNs as equal)
    • AbsTolCheck -- absolute error within tolerance (optional sort of failures)
    • RelTolCheck -- relative error within tolerance (optional sort of failures)
  • Rich per-check results (CheckResult) and aggregate (RecResult).
  • Easy to extend: implement a single check method on a ColumnCheck subclass

Feel free to open issues or PRs with suggestions or improvements.

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

recx-0.0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

recx-0.0.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file recx-0.0.1.tar.gz.

File metadata

  • Download URL: recx-0.0.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for recx-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4f5fd8ebe43fe13b40c4dc5203fde50f2fde65fed2b3cae6c4b2337c63c1ad42
MD5 59bcb573a3bcac25d27d9d86915bed78
BLAKE2b-256 a91e74a888deb3e45612c14ae31b2c04871dd153a535b5aa213600a20860107d

See more details on using hashes here.

File details

Details for the file recx-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: recx-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for recx-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 125ca6e525a92b0b3a1adfee89e8bb846b7bc460b8b721935cb3b642d6752d9a
MD5 c8b2dd2388670c3a79ecf1f55d39121b
BLAKE2b-256 8b382bb7a7df5a6967247d4e3d279cbd07112da201046f83d468b05636fefb49

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