Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Usage

from guardrails import Guard
from guardrails_ai.valid_sql import ValidSQL

guard = Guard().use(ValidSQL)

License

MIT — © Guardrails AI.

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_valid_sql-0.2.1a1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

guardrails_ai_valid_sql-0.2.1a1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file guardrails_ai_valid_sql-0.2.1a1.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_valid_sql-0.2.1a1.tar.gz
Algorithm Hash digest
SHA256 d2977207234444ed173965df5944ca9ba92c6fd1d08eac53e6ff2878216e4332
MD5 a2fd7c39fd3963b038b4d4e3091a77f7
BLAKE2b-256 850d852c10dc4bda75d6be8fb1c9d9b56afcdf3ed471f8a0233ce3330006940a

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_valid_sql-0.2.1a1.tar.gz:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guardrails_ai_valid_sql-0.2.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_valid_sql-0.2.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 35f41c5a4746444642943f2dae7ed223fc17c17a3056934f140139e34abcfd96
MD5 9f6c93961189fb01b1e661bcef591e03
BLAKE2b-256 688ba962f9318c26badd22ed95d0767ab93c1b31f23b53bc2cc000ef2f5b34f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardrails_ai_valid_sql-0.2.1a1-py3-none-any.whl:

Publisher: validators_publish.yml on guardrails-ai/guardrails-hub-monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.1a1 This release

2 files

0.1.0

2 files

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