Skip to main content

sparkrules-native (Rust Tier-1 scorer)

PyO3 extension implementing the Tier-1 scalar interpreter described in docs/CHOOSING_A_BACKEND.md. It reads rule AST JSON emitted by SparkRules Python (RulePack.to_native_json()) — the DRL lexer/parser stays on the Python side.

Build (local)

cd sparkrules_native
python -m venv .venv
.venv\\Scripts\\activate   # Windows
pip install maturin
maturin develop --release
python -c "import sparkrules_native as m; print(m.native_version())"

Parity

All scores must match LocalRuleExecutor.score() for the same fact dict / JSON-able structure. Run:

pytest tests/integration/test_native_parity.py -q

Consumers (no PyPI yet)

Until https://pypi.org/project/sparkrules-native/ resolves, use:

  • native-wheels.yml artifacts (.whl per OS/Python), or
  • maturin develop --release / maturin build --release locally.

See docs/NATIVE_TIER1.md (PyPI verification commands, Glue --extra-py-files, artifact names).

Publish to PyPI (maintainers)

The crate is CI-built (.github/workflows/native-wheels.yml) but not automatically published. publish-sparkrules-native.yml has no effect until the secret exists and the workflow run finishes green; then confirm the project on PyPI.

  1. Create a PYPI_API_TOKEN PyPI token secret on the GitHub repo (maturin reads MATURIN_PYPI_TOKEN; the workflow wires secrets.PYPI_API_TOKEN into it).
  2. Run publish-sparkrules-native.yml via Actions → workflow_dispatch.
  3. Restore sparkrules[native] in root pyproject.toml (native = ["sparkrules-native>=0.1.0,<1.0"]) once pip install sparkrules-native works from PyPI.

Tier 2+

src/eval_columnar.rs is reserved for an Arrow batch path; not implemented in Tier-1.

Metadata

Release files for sparkrules-native 0.1.0

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

Source distribution (sdist)

Source distribution for sparkrules-native 0.1.0
File Size Uploaded Provenance Actions
sparkrules_native-0.1.0.tar.gz 11.5 kB With provenance Details for sparkrules_native-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sparkrules-native 0.1.0
File Interpreter ABI Platform Actions
sparkrules_native-0.1.0-cp311-abi3-manylinux_2_34_x86_64.whl CPython 3.11 abi3 Linux glibc 2.34+ x86-64 Details for sparkrules_native-0.1.0-cp311-abi3-manylinux_2_34_x86_64.whl

Total release size: 963.0 kB

Release files / sparkrules_native-0.1.0.tar.gz

Download URL sparkrules_native-0.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
65d9778924c1a38ee6b3aa8a179ad89246d3ac183b5491464ae59712d5e41b53
BLAKE2b-256 checksum
How to use checksums
3e3dd280b97d1dfe6958450b0ce97733129764ef9f0bbee7e7a0d4a97d8cd322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 6, 2026.

Transparency log

Release files / sparkrules_native-0.1.0-cp311-abi3-manylinux_2_34_x86_64.whl

Download URL sparkrules_native-0.1.0-cp311-abi3-manylinux_2_34_x86_64.whl
Size 951.5 kB
Tags CPython 3.11 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
976bbc193925268557447dbd1fca0952e36e9daac2c5bdfe343d9d0098ca73cf
BLAKE2b-256 checksum
How to use checksums
caf0687eb1e9f003661213ebdf861e624f69d9af12da360934a418ebef6574f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 6, 2026.

Transparency log

Security for sparkrules-native 0.1.0

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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sparkrules_native-0.1.0.tar.gz

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 May 6, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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