Skip to main content

znyx-runtime

A lightweight, dependency-minimal FastAPI service that evaluates LLM traffic against guardrail policies. Rules-only out of the box; it gains ML detection when pointed at a Znyx inference sidecar over HTTP.

pip install znyx-runtime
znyx-runtime serve --port 8080

Or with Docker:

docker run -p 8080:8080 znyx/runtime

The runtime is deliberately thin: FastAPI, uvicorn, httpx, and znyx-core (the detection engine). No database, no heavy ML libraries. Point it at a sidecar endpoint to enable model-backed detectors; without one, it runs the deterministic rules path.

A model-backed detector is held at advisory WARN until it has been measured against a labelled dataset. The second subcommand is how you do that, with no control plane involved:

znyx-runtime benchmark --bundle policies.yaml --detector toxicity \
    --dataset labelled.jsonl --stamp

See the repository README for configuration, deployment manifests, the evaluate API, and the dataset format and gate thresholds that command uses.

License

Apache-2.0

Metadata

Release files for znyx-runtime 1.2.1

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-runtime 1.2.1
File Size Uploaded
znyx_runtime-1.2.1.tar.gz 49.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for znyx-runtime 1.2.1
File Interpreter ABI Platform
znyx_runtime-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 106.5 kB

Release files / znyx_runtime-1.2.1.tar.gz

Download URL znyx_runtime-1.2.1.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
788ad5b7037828de520b1bec37f5bc195ec574c47f9aa1e2853eddf34484c1c6
BLAKE2b-256 checksum
How to use checksums
08e54c32a88619a0cb4e7fad8c84cf5f7b9af596c5dddbd4352b1885fb995d4f
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 30, 2026.

Transparency log

Release files / znyx_runtime-1.2.1-py3-none-any.whl

Download URL znyx_runtime-1.2.1-py3-none-any.whl
Size 57.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3834387ca2878a754e77548992505859a84bca2d34224d29b95d8f690423dfd4
BLAKE2b-256 checksum
How to use checksums
182d60b8d0593dbd4af909367164694d02fccbaf3bbed3a977391588bd47b9f9
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 30, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

This release

1.2.1 This release

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