Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

omle-spark

Score OMLE models on Spark DataFrames.

OMLEModel is a Spark ML Transformer that delegates to the JVM-side io.github.openmle.spark.OMLEModel, so scoring runs natively on each executor rather than through a Python UDF.

from omle_spark import OMLEModel

model = OMLEModel(modelPath="/path/to/model.omle")
predictions = model.transform(df)

Input columns are resolved from the model's own input specs. A model with a single rank-2 input reads from featuresCol, following the usual Spark ML convention for a pre-assembled vector:

from pyspark.ml.feature import VectorAssembler

assembler = VectorAssembler(inputCols=["f0", "f1"], outputCol="features")
predictions = model.transform(assembler.transform(df))

A model with multiple or scalar inputs reads each one by name straight from the DataFrame, so no VectorAssembler is needed.

Output depends on the model's output count: a single output produces predictionCol (DoubleType); multiple outputs produce probabilityCol (VectorType) plus predictionCol holding the argmax.

Requirements

Two JARs on the driver and executor class-paths: omle-spark and omle-runtime. The released omle-runtime jar carries the native library for linux, macOS and Windows on x86-64, plus linux and macOS on arm64, and JNA extracts the right one per JVM — so there is nothing to install on the nodes and no jna.library.path to set. A locally built jar has no bundled library, and then JNA does need pointing at one on every node.

Spark 3.5 (Scala 2.12) and Spark 4.x (Scala 2.13) are both supported, each with its own build of the omle-spark JAR.

License

Apache-2.0

Release files for omle-spark 0.1.0rc5

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

Source distribution (sdist)

Source distribution for omle-spark 0.1.0rc5
File Size Uploaded
omle_spark-0.1.0rc5.tar.gz 11.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omle-spark 0.1.0rc5
File Interpreter ABI Platform
omle_spark-0.1.0rc5-py3-none-any.whl Python 3 none any Details

Total release size: 17.4 kB

Release files / omle_spark-0.1.0rc5.tar.gz

Download URL omle_spark-0.1.0rc5.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dabe9151b431878ddd1c1c60257fbd32997aa117e3e7eb592a2d92c19d23db13
BLAKE2b-256 checksum
How to use checksums
98a0124069e7f319ef992a82187116ed0712958e2a61ec3dd6abaa319dd1a057
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 Sep 19, 2026.

Transparency log

Release files / omle_spark-0.1.0rc5-py3-none-any.whl

Download URL omle_spark-0.1.0rc5-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77d02f8ab6dde63c2728f5514779f1fc613e1cd59707371e279458e289832faf
BLAKE2b-256 checksum
How to use checksums
9d907fff73e5879f61d408db152489b246709a357cf5a2584bbaa50d85bb8e03
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 Sep 19, 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