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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file guardrails_ai_web_sanitization-0.1.0.tar.gz.
File metadata
- Download URL: guardrails_ai_web_sanitization-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a700294e25f48803e0a2f4c515b5385a58a6ffdc57bd9c22eb0fa9bfab336b41
|
|
| MD5 |
48a469dc0f828629f48f987bcfc1f336
|
|
| BLAKE2b-256 |
4a700762c5c762e1582ff569c4e9674be4000a6bddf9b8eb932a9a56a7870b36
|
File details
Details for the file guardrails_ai_web_sanitization-0.1.0-py3-none-any.whl.
File metadata
- Download URL: guardrails_ai_web_sanitization-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ac6648f77fc7f7af8da9e03be1be95c54d0037cf7159be3885be089ed93bfa
|
|
| MD5 |
e9a214d443923ce814a402b1bad238a5
|
|
| BLAKE2b-256 |
7af5b26aefad173c29925c9fb3f85f4df171b955f216281dfce6f1b81df7391f
|