Skip to main content

Scans LLM outputs for strings that could cause browser script execution downstream.

Project description

guardrails-ai-web-sanitization

Scans LLM outputs for strings that could cause browser script execution downstream.

Installation

pip install guardrails-ai-web-sanitization

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.web_sanitization.post_install

Usage

from guardrails import Guard
from guardrails_ai.web_sanitization import WebSanitization

guard = Guard().use(WebSanitization)

License

MIT — © Guardrails AI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guardrails_ai_web_sanitization-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file guardrails_ai_web_sanitization-0.1.0.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_web_sanitization-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a700294e25f48803e0a2f4c515b5385a58a6ffdc57bd9c22eb0fa9bfab336b41
MD5 48a469dc0f828629f48f987bcfc1f336
BLAKE2b-256 4a700762c5c762e1582ff569c4e9674be4000a6bddf9b8eb932a9a56a7870b36

See more details on using hashes here.

File details

Details for the file guardrails_ai_web_sanitization-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_web_sanitization-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40ac6648f77fc7f7af8da9e03be1be95c54d0037cf7159be3885be089ed93bfa
MD5 e9a214d443923ce814a402b1bad238a5
BLAKE2b-256 7af5b26aefad173c29925c9fb3f85f4df171b955f216281dfce6f1b81df7391f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page