Skip to main content

orion-evaluator

Python bindings to the Orion Go evaluator. Runs FHE inference on compiled models.

Why keys are passed as bytes

The Evaluator constructor accepts serialized MemEvaluationKeySet bytes, not Go object handles:

evaluator = Evaluator(params_dict, keys_bytes)  # bytes, not handles

This looks weird if you're generating keys and running inference in the same Python process — you serialize a Go object to bytes just to deserialize it back into a Go object on the other side. The reason: Go has shitty FFI.

Each CGO shared library (.so) embeds its own Go runtime with its own GC, goroutine scheduler, and cgo.Handle table. The lattigo package (keygen, encrypt, decrypt) and orion-evaluator (inference) are separate .so files, so a cgo.Handle from one means nothing to the other. They are two isolated Go worlds in the same process. There is no way to share Go pointers across them.

So we serialize to bytes as the common language between the two runtimes. This is also the right interface for real deployments where keys come over the network from a remote client.

Usage

from orion_evaluator import Model, Evaluator

# Context manager support (recommended — auto-cleanup on block exit)
with Model.load(model_bytes) as model:
    params_dict, manifest, input_level = model.client_params()
    with Evaluator(params_dict, keys_bytes) as evaluator:
        result_ct_bytes = evaluator.forward(model, input_ct_bytes)

# Or explicit close()
model = Model.load(model_bytes)
evaluator = Evaluator(params_dict, keys_bytes)
result_ct_bytes = evaluator.forward(model, input_ct_bytes)
evaluator.close()
model.close()

Errors

All errors raise from orion_evaluator.errors:

  • EvaluatorError — base class for all evaluator errors
  • ModelLoadError(EvaluatorError) — raised by Model.load() on invalid data

Metadata

Release files for orion-v2-evaluator 2.1.8

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

Source distribution (sdist)

Source distribution for orion-v2-evaluator 2.1.8
File Size Uploaded Provenance Actions
orion_v2_evaluator-2.1.8.tar.gz 6.3 MB With provenance Details for orion_v2_evaluator-2.1.8.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for orion-v2-evaluator 2.1.8
File Interpreter ABI Platform Actions
orion_v2_evaluator-2.1.8-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for orion_v2_evaluator-2.1.8-py3-none-manylinux_2_17_x86_64.whl
orion_v2_evaluator-2.1.8-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for orion_v2_evaluator-2.1.8-py3-none-macosx_11_0_x86_64.whl
orion_v2_evaluator-2.1.8-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for orion_v2_evaluator-2.1.8-py3-none-macosx_11_0_arm64.whl

Total release size: 19.1 MB

Release files / orion_v2_evaluator-2.1.8.tar.gz

Download URL orion_v2_evaluator-2.1.8.tar.gz
Size 6.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ef6cb2da5e84c89719fa3dc0f2fd5e110dd797ea26c89327ef60227e9f553fa5
BLAKE2b-256 checksum
How to use checksums
0f1a7cbe216275faf347a377e35969710315532ea1d7914f3514536e51309bb1
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 17, 2026.

Transparency log

Release files / orion_v2_evaluator-2.1.8-py3-none-manylinux_2_17_x86_64.whl

Download URL orion_v2_evaluator-2.1.8-py3-none-manylinux_2_17_x86_64.whl
Size 6.3 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a295050430024bdd7edbf9fe229cd200e756f3b107eb51c37a18ac660cd9c136
BLAKE2b-256 checksum
How to use checksums
83c19d58c2cd1ddf5f126c62788f2f6e29ae3efa6585845e36b89b7e7f64ffe7
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 17, 2026.

Transparency log

Release files / orion_v2_evaluator-2.1.8-py3-none-macosx_11_0_x86_64.whl

Download URL orion_v2_evaluator-2.1.8-py3-none-macosx_11_0_x86_64.whl
Size 3.4 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
73fd9870d2b5839e4039becad85031e3f16b4c647befa426681519f716fcc046
BLAKE2b-256 checksum
How to use checksums
556fd242ed4d2d3b7301fd8f6c514799c6509782422daa7ae06fdefb571a06b7
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 17, 2026.

Transparency log

Release files / orion_v2_evaluator-2.1.8-py3-none-macosx_11_0_arm64.whl

Download URL orion_v2_evaluator-2.1.8-py3-none-macosx_11_0_arm64.whl
Size 3.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d799d05a726c6db8b54f5d884c8dae0bbebd8210537c434ff71d12dc5f2055ce
BLAKE2b-256 checksum
How to use checksums
e27afc5c0ba81d681544c807296b2b4b1200de8afc32cb4b1aed6ac47cc98aae
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 17, 2026.

Transparency log

Security for orion-v2-evaluator 2.1.8

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

Select from 4 files

Attestation for orion_v2_evaluator-2.1.8.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 17, 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.

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