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

Built distribution (wheel)

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

Total release size: 106.4 kB

Release files / znyx_runtime-1.2.2.tar.gz

Download URL znyx_runtime-1.2.2.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e160763521b4f8a5ff51dd53aea91e1b745da9ca50edc07ca4671a0c49b7bfcc
BLAKE2b-256 checksum
How to use checksums
eeb526f353824df93028bf912bcb2ed2e06c74cfafa05ac7d2061b2eafcf1184
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.2-py3-none-any.whl

Download URL znyx_runtime-1.2.2-py3-none-any.whl
Size 57.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f51105ae0fb6a1df8f55a6ba326e0c7d022006532a7d42220e8338fb7230827
BLAKE2b-256 checksum
How to use checksums
4b748fd3948a30406ab1fc5f02124158bb7ea6d80fcba182f31f1e74c6d313fe
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