This rule checks for the use of particular SQL predicates in the query. It is important to exclude SQL predicates from the query to prevent SQL injection attacks.
Project description
guardrails-ai-exclude-sql-predicates
This rule checks for the use of particular SQL predicates in the query. It is important to exclude SQL predicates from the query to prevent SQL injection attacks.
Installation
pip install guardrails-ai-exclude-sql-predicates
This validator ships local models. After installing, run the post-install step to download them:
python -m guardrails_ai.exclude_sql_predicates.post_install
Usage
from guardrails import Guard
from guardrails_ai.exclude_sql_predicates import ExcludeSqlPredicates
guard = Guard().use(ExcludeSqlPredicates)
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_exclude_sql_predicates-0.1.0.tar.gz.
File metadata
- Download URL: guardrails_ai_exclude_sql_predicates-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea3ee017ceb1626d15adb9c4fb52aa11a1d97b9ceacbc6c8fa3c5c95e04c3a7d
|
|
| MD5 |
01399c668b29a6b2a13aa3c147b59510
|
|
| BLAKE2b-256 |
ff98f5b4395c55a6f2ddf75ae1a2bc33d6207a025055c3aa32af4ae9bd9a5b85
|
File details
Details for the file guardrails_ai_exclude_sql_predicates-0.1.0-py3-none-any.whl.
File metadata
- Download URL: guardrails_ai_exclude_sql_predicates-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2787a3bec6880698629117c0c1a13bc6418f188a5c3bd1eb783f8cb2d09c4c1b
|
|
| MD5 |
60b4d9a77d4b59cb55fdf7c88fd74a56
|
|
| BLAKE2b-256 |
9be85e4b0d4ba47982381e75374666e6b667b0bb623cf882d3e3f5f4ad569509
|