Skip to main content

nexura-guardrails-ai

Bidirectional bridge for Nexura 0.9.3 and Guardrails AI >=0.11,<0.12. Apache-2.0. Install with pip install nexura-guardrails-ai.

Install from this workspace with uv sync, or build its wheel with uv build --package nexura-guardrails-ai. The package depends on nexura-agents, nexura-guardrails and guardrails-ai; it does not require Nexura runtime or Studio.

from guardrails import Guard, OnFailAction
from nexura_guardrails import as_guardrail, pii
from nexura_guardrails_ai import GuardrailsAICheck, as_validator

# Nexura -> Guardrails AI: ordinary local regex checks, no model.
guard = Guard(use_server=False).use(as_validator(pii(action="redact"), on_fail=OnFailAction.FIX))
outcome = guard.validate("Email bob@example.com", num_reasks=0)
assert "bob@example.com" not in outcome.validated_output

# Guardrails AI -> Nexura: an existing Guard, or installed Validator instances.
check = GuardrailsAICheck(guard, on_fail="fix", deterministic=True)
output_guardrail = as_guardrail(check, stage="output")

GuardrailsAICheck accepts one validator, an iterable, Guard, or AsyncGuard. It supports as_guardrail, as_tool_guardrail, composition and GuardrailPolicy. guardrails_ai(*validators, on_fail="block") returns an input/output Preset. as_validator(check) registers under nexura/<check-name> once, while each instance keeps its own check configuration. Both sync and async Guards work.

nexura_validators() supplies injection, PII block, length (100,000 chars) and JSON-only filters, for JSON output. Select nexura_validators(pii_action="redact") for the PII FIX variant. Configure topics with keywords=/deny= to include the topics filter. For plain text choose individual as_validator(...) checks.

See Guardrails AI documentation for both directions, the built-in category map, Hub installation, telemetry, network behavior and timeout limits. No validators are installed at runtime.

Metadata

Release files for nexura-guardrails-ai 0.9.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 nexura-guardrails-ai 0.9.3
File Size Uploaded Provenance Actions
nexura_guardrails_ai-0.9.3.tar.gz 13.6 kB Without provenance Details for nexura_guardrails_ai-0.9.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nexura-guardrails-ai 0.9.3
File Interpreter ABI Platform Actions
nexura_guardrails_ai-0.9.3-py3-none-any.whl Python 3 none any Details for nexura_guardrails_ai-0.9.3-py3-none-any.whl

Total release size: 29.3 kB

Release files / nexura_guardrails_ai-0.9.3.tar.gz

Download URL nexura_guardrails_ai-0.9.3.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
38c7040e6267d6bb00ed168254c069934a4609bee26b543dde62f5743d4def6a
BLAKE2b-256 checksum
How to use checksums
e2b670563f3601baa2e9b23dc9cc505da9f73f3b16ba1bfe64ad79eb92484239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / nexura_guardrails_ai-0.9.3-py3-none-any.whl

Download URL nexura_guardrails_ai-0.9.3-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f19a2d4d05e98a92ee409ffc48b81d64db4e7086d4642c4087c8f4d7bf9afa73
BLAKE2b-256 checksum
How to use checksums
deb589e061ed9387d318d6faab8d5f39c289d6ee3c1ecab9d774263b04557ac7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for nexura-guardrails-ai 0.9.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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