Lightweight reconciliation tests for DataFrames
Project description
Lightweight reconciliation tests for DataFrames
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
checkmethod on aColumnChecksubclass
Feel free to open issues or PRs with suggestions or improvements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f5fd8ebe43fe13b40c4dc5203fde50f2fde65fed2b3cae6c4b2337c63c1ad42
|
|
| MD5 |
59bcb573a3bcac25d27d9d86915bed78
|
|
| BLAKE2b-256 |
a91e74a888deb3e45612c14ae31b2c04871dd153a535b5aa213600a20860107d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
125ca6e525a92b0b3a1adfee89e8bb846b7bc460b8b721935cb3b642d6752d9a
|
|
| MD5 |
c8b2dd2388670c3a79ecf1f55d39121b
|
|
| BLAKE2b-256 |
8b382bb7a7df5a6967247d4e3d279cbd07112da201046f83d468b05636fefb49
|