Local-first EMIR/SFTR data quality engine — Python / Arrow bindings
Project description
opendqi (Python / Arrow bindings)
Python bindings to the OpenDQI EMIR/SFTR data-quality engine. Wraps the Rust core in a small PyO3
- Arrow C Data Interface layer; the engine itself is not reimplemented — every parser, every check, the streaming sink and the canonical record model are reused as-is.
Status
Preview (v0.12.x). See
../../docs/python-roadmap.md for
the milestone breakdown. P1 ships the package skeleton (no
functions yet) ; P2–P5 add scan_parquet, DqIssue → pyarrow. Table (the v1.0 contract), scan_table(arrow_tbl, mapping),
parse_xml, and the result.normalized Arrow output.
Install (when v0.12.0 is released)
# From the GitHub Release tarballs:
pip install https://github.com/PauFou/OpenDQI/releases/download/v0.12.0/opendqi-0.12.0-cp39-abi3-<target>.whl
PyPI publication is gated on a separate explicit-user-ask release. For now the wheels live on the GitHub Releases page.
Local development
# From the repo root, with Python 3.9–3.13 (3.14 supported as a
# runtime target via abi3-py39 but the build script of PyO3 0.22
# needs >= 3.13 — see the spec for details).
python3.12 -m venv crates/opendqi-py/.venv
source crates/opendqi-py/.venv/bin/activate
pip install --upgrade pip maturin pytest pyarrow
cd crates/opendqi-py
maturin develop # build the cdylib + install in the venv
pytest tests/ # run the smoke tests
python -c "import opendqi; print(opendqi.__version__)"
Public API (target — surface grows commit-by-commit through P5)
import opendqi
# P2 — path-based scan, summary only.
result = opendqi.emir.scan_parquet("tsr.parquet")
result.summary # dict — same fields as summary.json
# P3 — DqIssue → pyarrow.Table (v1.0 stable schema, byte-equal to
# the existing issues.csv).
result.issues # pyarrow.Table | None
# P4 — Arrow-in surface with a canonical-field → user-column mapping.
import pyarrow as pa
table = pa.table({...})
result = opendqi.emir.scan_table(table, mapping={
"uti": "UTI",
"valuation_timestamp": "ValuationTimestamp",
})
# P4 (bonus) — parse any of the 12 ISO 20022 messages directly.
records = opendqi.emir.parse_xml("auth107.xml") # pyarrow.Table
# P5 — optional normalized output (RecordBatch of the canonical model).
result = opendqi.emir.scan_parquet("tsr.parquet", normalize=True)
result.normalized # pyarrow.Table | None
License
Apache-2.0 — same as the parent
OpenDQI repository. See
../../LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 opendqi-0.16.0-cp39-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: opendqi-0.16.0-cp39-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.9+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
848aad0a63e38794f37cee2f2dbf02a3659c101b6609aecc3e46ed0255cfa3d5
|
|
| MD5 |
22f39bf36117d8283ee727de95965d81
|
|
| BLAKE2b-256 |
90f969fafc1206fed2ec143f98a814fb46ae0be183a2c3a7d428a4000646ed5f
|
Provenance
The following attestation bundles were made for opendqi-0.16.0-cp39-abi3-manylinux_2_28_aarch64.whl:
Publisher:
python-release.yml on PauFou/OpenDQI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opendqi-0.16.0-cp39-abi3-manylinux_2_28_aarch64.whl -
Subject digest:
848aad0a63e38794f37cee2f2dbf02a3659c101b6609aecc3e46ed0255cfa3d5 - Sigstore transparency entry: 1600333165
- Sigstore integration time:
-
Permalink:
PauFou/OpenDQI@88e5748fca45816789d6e25275784986a6c713e3 -
Branch / Tag:
refs/tags/v0.16.0 - Owner: https://github.com/PauFou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@88e5748fca45816789d6e25275784986a6c713e3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file opendqi-0.16.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: opendqi-0.16.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87c0a2929fb5f33265ee142e9390a012a176e833328b2f477c378055749bdaa0
|
|
| MD5 |
9110d8349bc96ae3bf44299170e4e933
|
|
| BLAKE2b-256 |
49a8d3ea933476475017d007e772ea6017df8e3f947eea41fddfdd6d30835435
|
Provenance
The following attestation bundles were made for opendqi-0.16.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
python-release.yml on PauFou/OpenDQI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opendqi-0.16.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
87c0a2929fb5f33265ee142e9390a012a176e833328b2f477c378055749bdaa0 - Sigstore transparency entry: 1600333018
- Sigstore integration time:
-
Permalink:
PauFou/OpenDQI@88e5748fca45816789d6e25275784986a6c713e3 -
Branch / Tag:
refs/tags/v0.16.0 - Owner: https://github.com/PauFou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@88e5748fca45816789d6e25275784986a6c713e3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file opendqi-0.16.0-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: opendqi-0.16.0-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52bc590e3cc01a401d5cb753098a0dceb00d9aaf3f0711e64d74014e75dd5e66
|
|
| MD5 |
5c908e17ec92d0fbc23ca153410b065c
|
|
| BLAKE2b-256 |
c538001051828fc54332497c5f7071c336327bf43e4bccc01d629933ef0fd414
|
Provenance
The following attestation bundles were made for opendqi-0.16.0-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
python-release.yml on PauFou/OpenDQI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opendqi-0.16.0-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
52bc590e3cc01a401d5cb753098a0dceb00d9aaf3f0711e64d74014e75dd5e66 - Sigstore transparency entry: 1600333309
- Sigstore integration time:
-
Permalink:
PauFou/OpenDQI@88e5748fca45816789d6e25275784986a6c713e3 -
Branch / Tag:
refs/tags/v0.16.0 - Owner: https://github.com/PauFou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@88e5748fca45816789d6e25275784986a6c713e3 -
Trigger Event:
push
-
Statement type: