Skip to main content

guardrails-ai-valid-sql

Validates whether the given SQL code is syntactically correct using. Optionally accepts a database schema to validate against using SQLAlchemy.

Installation

pip install guardrails-ai-valid-sql

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

python -m guardrails_ai.valid_sql.post_install

Usage

from guardrails import Guard
from guardrails_ai.valid_sql import ValidSQL

guard = Guard().use(ValidSQL)

License

MIT — © Guardrails AI.

Metadata

Release files for guardrails-ai-valid-sql 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for guardrails-ai-valid-sql 0.1.0
File Size Uploaded Provenance
guardrails_ai_valid_sql-0.1.0.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for guardrails-ai-valid-sql 0.1.0
File Interpreter ABI Platform
guardrails_ai_valid_sql-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / guardrails_ai_valid_sql-0.1.0.tar.gz

Download URL guardrails_ai_valid_sql-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c552a771521cb7d1409fa187dc5944e1b32ca20b5c6688c4f383087b7a94b81c
BLAKE2b-256 checksum
How to use checksums
7922ddaa2184e67b24ba6641436c9fa32432970972283b2215847bd7f95f0071
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / guardrails_ai_valid_sql-0.1.0-py3-none-any.whl

Download URL guardrails_ai_valid_sql-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
feb39431981b41ec7e15cb8f8d62d64d2d0a8b58b9cb699d94d94f17addc514b
BLAKE2b-256 checksum
How to use checksums
4f7a8b48a68101d79aef3636cbbaa51e7f9eeeeb123d4010dea4b1b83289029e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for guardrails-ai-valid-sql 0.1.0

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.

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