Skip to main content

znyx-inference

The optional Znyx inference sidecar: an HTTP service that serves ML models for model-backed guardrail detection. The znyx-runtime calls it over HTTP to escalate from rules to ML. Without it, the runtime still works fully on its deterministic rules path.

# boots dependency-free on a stub runner (no ML stack needed):
pip install znyx-inference

# to serve real model weights on CPU — lean, torch-free (onnxruntime + tokenizers):
pip install "znyx-inference[onnx]"

# offline only: export + quantize a checkpoint to a pinned ONNX artifact (heavy: torch + optimum):
pip install "znyx-inference[export]"

Weights are never bundled

This package ships code only, no model weights. You fetch the models you want explicitly, sha256-pin them, and mount them. Nothing is downloaded implicitly on the serving path. See MODELS.md for the curated model list, licenses, and the fetch-and-pin workflow, including which models carry special licenses.

How it fits

your app -> znyx-runtime (rules) --HTTP--> znyx-inference (ML) -> local, pinned weights

The sidecar loads only local, sha256-verified weights, fails closed, and never phones home. If a model is not present it stays on the stub runner and the runtime falls back to rules per the policy's fallback mode.

See the repository README for the full architecture.

License

Apache-2.0. Model weights you fetch are governed by their own licenses (see MODELS.md).

Metadata

Release files for znyx-inference 1.2.2

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

Source distribution (sdist)

Source distribution for znyx-inference 1.2.2
File Size Uploaded
znyx_inference-1.2.2.tar.gz 41.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for znyx-inference 1.2.2
File Interpreter ABI Platform
znyx_inference-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 91.4 kB

Release files / znyx_inference-1.2.2.tar.gz

Download URL znyx_inference-1.2.2.tar.gz
Size 41.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6b8b9507bbb71dfcc7f9a42a0450b5d2b52b363e1854c14212d26651a5f40102
BLAKE2b-256 checksum
How to use checksums
2c2ac541f2fc2a1e3f2292a2b08cef17d084b4d9fc086dd9a1d4d793f6eaf2b1
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 Oct 1, 2026.

Transparency log

Release files / znyx_inference-1.2.2-py3-none-any.whl

Download URL znyx_inference-1.2.2-py3-none-any.whl
Size 50.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d3023efc85a2c51321e7700720b6dc879225d1dc289b95417707e6b6dfcd8fb
BLAKE2b-256 checksum
How to use checksums
edaf85034a59b7e5a8028c5fc5587d80091ef1d593993d0effb7550054e79336
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 Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.4

2 release files

1.2.3

2 release files

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.0.0

2 release files

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