Skip to main content

Python Binding

Distribution name: nirs4all-core

Import name: nirs4all_core

This binding intentionally avoids the nirs4all import name so it can be installed next to the full Python nirs4all package during parity checks. The canonical source repository is nirs4all-core; only the Python distribution carries the -core suffix because the production nirs4all Python package already owns the bare name.

An additive import facade is available for governed topology work:

  • n4a mirrors the full nirs4all_core aggregate surface.

Archive V2 bridge

nirs4all_core.read_portable_predictor_package_v2(path) invokes the embedded Rust Archive V2 reader and returns the exact validated DAG-ML Package V2 bytes. It does not parse ZIP members in Python, deserialize the package, or execute a prediction. Pass the returned bytes to DAG-ML's typed package/replay surface; the aggregate remains only the container and integrity boundary.

Portable Execution

nirs4all_core.run_portable_pipeline(source, dataset) executes the shared portable JSON/YAML subset through the nirs4all-methods Python bindings:

  • KennardStoneSplitter
  • StandardNormalVariate / SNV
  • SavitzkyGolay
  • sklearn.cross_decomposition.PLSRegression
  • _range_ sweeps over n_components

Savitzky-Golay defaults to mode="interp" for full Python nirs4all parity and preserves explicit methods-backed modes (mirror, constant, nearest, wrap, interp) plus cval.

The aggregate does not implement numerical kernels. Install the optional methods extra, or make n4m and pls4all importable, before calling it:

python -m pip install "nirs4all-core[methods]"

The strict local parity gate compares all shared fixtures against the full Python nirs4all oracle and reports max prediction/RMSE deltas on failure:

PYTHONPATH=bindings/python/src:/path/to/nirs4all-methods/bindings/python/src \
N4M_LIB_PATH=/path/to/libn4m.so \
NIRS4ALL_CORE_REQUIRE_METHODS_PARITY=1 \
python -m unittest bindings/python/tests/test_execution_parity.py -v

Metadata

Release files for nirs4all-core 0.3.16

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

Source distribution (sdist)

Source distribution for nirs4all-core 0.3.16
File Size Uploaded
nirs4all_core-0.3.16.tar.gz 151.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for nirs4all-core 0.3.16
File
nirs4all_core-0.3.16-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
nirs4all_core-0.3.16-cp311-abi3-win32.whl CPython 3.11 abi3 Windows x86-32 Details
nirs4all_core-0.3.16-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
nirs4all_core-0.3.16-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details

Total release size: 2.0 MB

Release files / nirs4all_core-0.3.16.tar.gz

Download URL nirs4all_core-0.3.16.tar.gz
Size 151.8 kB
Tags Source
SHA-256 checksum
How to use checksums
047428da79de188ee31538f76f1cb7b28ef24425c4a1081655079432c5e765f2
BLAKE2b-256 checksum
How to use checksums
13b6065439d0e35e1fa95b0fa76e1fe539619462cbaf5771c7836c694ad8f228
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 26, 2026.

Transparency log

Release files / nirs4all_core-0.3.16-cp311-abi3-win_amd64.whl

Download URL nirs4all_core-0.3.16-cp311-abi3-win_amd64.whl
Size 355.5 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
bd22b9b43fdd6be86f0e41f7a5fbd9417ce7cd5225351621bab38e19f7bd12c5
BLAKE2b-256 checksum
How to use checksums
a374b837b4dc7aa6d9aa4821f4f3f7302b4af132e6cfc924a6c04cf1d6afbbd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 26, 2026.

Transparency log

Release files / nirs4all_core-0.3.16-cp311-abi3-win32.whl

Download URL nirs4all_core-0.3.16-cp311-abi3-win32.whl
Size 336.6 kB
Tags CPython 3.11 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
cac1748899e93a451f6eb4c3ceb76565531b4d62c6c2c9371414504b71a4b1d4
BLAKE2b-256 checksum
How to use checksums
5a3037831f5e7e4bb3b84df12102ad0062b35d84d218c9bf779b6de3a5df7e16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 26, 2026.

Transparency log

Release files / nirs4all_core-0.3.16-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL nirs4all_core-0.3.16-cp311-abi3-manylinux_2_28_x86_64.whl
Size 729.6 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
c4f3e09180bf5e5c4f07ba7a033ead3657b37fa45768b09fa6afa43a2bc3bcfb
BLAKE2b-256 checksum
How to use checksums
a3db4d8338486eae71b555e8c6858c49768ad59211290801564fcd4d76ab6cee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 26, 2026.

Transparency log

Release files / nirs4all_core-0.3.16-cp311-abi3-macosx_11_0_arm64.whl

Download URL nirs4all_core-0.3.16-cp311-abi3-macosx_11_0_arm64.whl
Size 429.3 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3e2a2edbd562744835a5852e5b1adfcb4879e1d55a51a2bb19483ac91f5a6538
BLAKE2b-256 checksum
How to use checksums
07048e45cc07d23754e0c010fae002bb30f24f84d2f316649a77b94059dbbae8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 26, 2026.

Transparency log
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