dag-ml-data-provider (Python)
Stdlib-only ctypes shim for the dag-ml-data C ABI provider vtable. It is a
thin, modality-neutral wrapper over the Rust dag-ml-data-capi cdylib: it hands
JSON payloads and host buffers to Rust and decodes the Arrow / owned-struct
results. It contains no NIRS, ML, or scheduling logic — those live in
dag-ml-data / dag-ml.
This is the provider binding. The sibling dag-ml-data PyO3 package target
(crates/dag-ml-data-py) binds the JSON contracts and is unrelated.
Locating the cdylib
The platform wheel bundles dag_ml_data_capi under .libs/ and records its
size and SHA-256 in a package-local provenance manifest. Automatic discovery
verifies that manifest before loading the bundled library. Existing source
checkout and explicit-library workflows remain available. Discovery order:
- an explicit
library_path=...argument, - the
DAG_ML_DATA_CAPI_LIBenvironment variable, - the verified package-local
dag_ml_data_provider/.libs/library, - the Cargo target directory of a source checkout (honoring
CARGO_TARGET_DIR, else<workspace>/target/{debug,release}).
Build the cdylib from a checkout with:
cargo build -p dag-ml-data-capi --lib
Build an autonomous wheel from a clean checkout:
python -m build --wheel crates/dag-ml-data-capi/bindings/python
The build hook refuses dirty sources
unless DAG_ML_DATA_PROVIDER_ALLOW_DIRTY_BUILD=1 is explicitly set for a local
development artifact. scripts/smoke_python_provider_wheel.py verifies an
installed wheel in an isolated environment.
Provider publication
The dedicated .github/workflows/release-provider-python.yml builds this
package independently of the dag-ml-data PyO3 publisher. Manual dispatch
builds and tests only by default; pushes to integration/release-20261109
also build and test without publishing. Publication requires either a push of the
matching provider-vX.Y.Z tag or a dispatch on that provider tag with
publish: true. The first provider version is 0.2.16, with proposed tag
provider-v0.2.16; this does not reissue the PyO3 distribution.
The workflow builds native wheels for Linux x86_64 (manylinux 2.28), macOS
arm64 (deployment target 11.0), and Windows x86_64 (MSVC). These are the
release build targets, subject to each platform's installed-package smoke;
there is no universal or cross-compiled provider wheel. Other targets are
outside this first publication. Each wheel includes the native library,
include/dag_ml_data.h, the project and third-party license texts plus
THIRD_PARTY_NOTICES.md under licenses/, and the source/version/target
manifest within dag_ml_data_provider.
Linux checkout builds produce a local linux_x86_64 wheel. The publisher
builds inside manylinux, runs auditwheel repair, refreshes the bundled
library digest and wheel RECORD, and then tests the final wheel. It uploads
only the same wheel bytes that passed the isolated installed-package smoke.
The final OIDC job checks exactly three same-run wheels, their native hashes
and RECORD, source commit, versions, platforms and packaged resources. Its Trusted Publisher tuple is GBeurier/dag-ml-data, workflow
release-provider-python.yml, environment pypi, PyPI project
dag-ml-data-provider.
This first publication is wheels only. The hook deliberately refuses an sdist:
the nested Python package alone lacks the Rust workspace, path dependencies,
lockfile, headers and license inputs, and the hook requires Git provenance.
A future source distribution needs a complete standalone build contract;
source builds currently require a full Git checkout and --wheel.
Usage
from dag_ml_data_provider import InMemoryProvider
with InMemoryProvider.from_files(
"coordinator_data_plan_envelope.json",
f64_feature_matrices=[...],
# library_path=... optional; discovered automatically otherwise
) as provider:
data_handle = provider.materialize_file("materialization_request.json")
view_handle = provider.make_view(data_handle, {"sample_ids": [...]})
features = provider.feature_values(view_handle, "x")
PackageProvider.from_package_resources(...) takes explicit relative resource
names for a coordinator envelope, a deterministic .n4d feature store and
optional target tables in an installed package. It refuses traversal, escaping
symlinks and namespace packages; Rust validates the .n4d integrity trailer.
Direct PackageProvider(...) and from_files(...) accept host filesystem paths.
All three constructors retain the optional library_path= override. This is a
numeric package-backed provider slice; N-D package payloads and direct
nirs4all-io DatasetPackage conversion remain future work.
Tests
pip install -e ".[test]"
cargo build -p dag-ml-data-capi --lib # so the cdylib can be discovered
pytest
The package tests skip automatically if the cdylib cannot be located.
Metadata
Release files for dag-ml-data-provider 0.2.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dag_ml_data_provider-0.2.16-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for dag_ml_data_provider-0.2.16-py3-none-win_amd64.whl |
| dag_ml_data_provider-0.2.16-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for dag_ml_data_provider-0.2.16-py3-none-manylinux_2_28_x86_64.whl |
| dag_ml_data_provider-0.2.16-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for dag_ml_data_provider-0.2.16-py3-none-macosx_11_0_arm64.whl |
Total release size: 3.6 MB
Release files / dag_ml_data_provider-0.2.16-py3-none-win_amd64.whl
| Download URL | dag_ml_data_provider-0.2.16-py3-none-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
78a67531674ba3ce9184424efccb2244617df6f506f98dbea96c0a831f224556
|
|
BLAKE2b-256 checksum How to use checksums |
8cb57e38735f844a80cad8fbf54d7467e0e7e76eb6d1f804ad859cb3b33136fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / dag_ml_data_provider-0.2.16-py3-none-manylinux_2_28_x86_64.whl
| Download URL | dag_ml_data_provider-0.2.16-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
8f2b9c8ec754be57c27867c130a7a1f039c049d495a2e910f1a833c84e582fad
|
|
BLAKE2b-256 checksum How to use checksums |
1c877060db2bc2a48eb1d88e5cc807541095299e925954ed153a610fabdfd81c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / dag_ml_data_provider-0.2.16-py3-none-macosx_11_0_arm64.whl
| Download URL | dag_ml_data_provider-0.2.16-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d11c1c81443391eb8944716a53051bc67bed4acb9986db45d8e542a2cf67ca5d
|
|
BLAKE2b-256 checksum How to use checksums |
5e993b9763579659825f60e5b7fcfed4e128cc25b893740f749fd927d6892dc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for dag-ml-data-provider 0.2.16
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.
Full provenance
All 3 files in this release have been uploaded with provenance metadata.
Attestation for dag_ml_data_provider-0.2.16-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA 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.