Skip to main content

Assess whether a generated number is between a maximum and minimum value.

Project description

guardrails-ai-valid-range

Assess whether a generated number is between a maximum and minimum value.

Installation

pip install guardrails-ai-valid-range

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

python -m guardrails_ai.valid_range.post_install

Usage

from guardrails import Guard
from guardrails_ai.valid_range import ValidRange

guard = Guard().use(ValidRange)

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_range-0.1.0.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_range-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for guardrails_ai_valid_range-0.1.0.tar.gz
Algorithm Hash digest
SHA256 156cc93c979b777553de2a0ebac6f4ccacfed103e786dcdd6c0d771d23043221
MD5 3dfbbb1ac6aae074861251672fb364a2
BLAKE2b-256 260410612f13a9f972e83b04fd9e94c862372e4adbc8f0f391eb237da788b473

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for guardrails_ai_valid_range-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 124f48ca1d048fb05c87f79528510f5801d395f60d8b2e66f2e3e0f7a4576475
MD5 43a6fc7458dd443c22bf588c8c512482
BLAKE2b-256 b89108abd57c36b6d6ed852573a2ea0cebaefa0eb42ffc5d689e15523111b7d7

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