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

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

Built distribution (wheel)

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

Total release size: 106.5 kB

Release files / znyx_runtime-1.2.3.tar.gz

Download URL znyx_runtime-1.2.3.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e39c469de98f2726be33d07116433cd93582bb06d63972861f719d69b6c03294
BLAKE2b-256 checksum
How to use checksums
d98b388cd0d46f5a6138cf970db0ae03c138fd826ffa7a51ac43b12b6d7fde44
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_runtime-1.2.3-py3-none-any.whl

Download URL znyx_runtime-1.2.3-py3-none-any.whl
Size 57.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73e4f5f6d2d043178d4db850c178fd922195bf0443dda260a7bb69ad778c824c
BLAKE2b-256 checksum
How to use checksums
7f8c688d44f2487ceed473936dc505c22e86769ade84e0d7f7b895d97be27c52
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

This release

1.2.3 This release

2 release files

1.2.2

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