Skip to main content

Ensures the length of a string or list falls between a minimum and maximum.

Project description

guardrails-ai-valid-length

Ensures the length of a string or list falls between a minimum and maximum.

Installation

pip install guardrails-ai-valid-length

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

python -m guardrails_ai.valid_length.post_install

Usage

from guardrails import Guard
from guardrails_ai.valid_length import ValidLength

guard = Guard().use(ValidLength)

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_valid_length-0.1.0.tar.gz (4.5 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_length-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for guardrails_ai_valid_length-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a03342da693e528d59d0b4423ab6d2439c6b9826fedcf6d7a16649f7040f4204
MD5 93c321f6d15d4c90c71c9afbb980fe2d
BLAKE2b-256 e0b53a11c6947c668fdfbf0afa5907228c84667c11b728ab6de419a3805f4109

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for guardrails_ai_valid_length-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e9a92a0dba699e50213bc4bc670ae2a4f0ee6b5ce2ab92ef649f33db63094df
MD5 80e01629542676e4ffc7eed6a8856030
BLAKE2b-256 95e416356c06ee0ce81cc980cee4e492cb2aa6f2df0eaca6b82b8d2caa2166e6

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