guardrails-ai-valid-choices
Checks if a given string is a valid choice from a list of choices.
Installation
pip install guardrails-ai-valid-choices
This validator ships local models. After installing, run the post-install step to download them:
python -m guardrails_ai.valid_choices.post_install
Usage
from guardrails import Guard
from guardrails_ai.valid_choices import ValidChoices
guard = Guard().use(ValidChoices)
License
MIT — © Guardrails AI.
Metadata
Release files for guardrails-ai-valid-choices 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| guardrails_ai_valid_choices-0.1.0.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| guardrails_ai_valid_choices-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / guardrails_ai_valid_choices-0.1.0.tar.gz
| Download URL | guardrails_ai_valid_choices-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30b1d105adc4e639045a48aeb0fa4644eaecdbbecc12bc668e0e2150c7494d2b
|
|
BLAKE2b-256 checksum How to use checksums |
ab966f22eb828c30f1e68315dda37218b1f9c88197d42973e318bc96159f49f5
|
| 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_choices-0.1.0-py3-none-any.whl
| Download URL | guardrails_ai_valid_choices-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa780e9123cde43aff47a3c47a6158449ca635503e1727e444bfe1384f71957d
|
|
BLAKE2b-256 checksum How to use checksums |
cb736cf806c9d0f21fc671b7bd6435136c86fce1840a609d3f6b1fb54bc626c0
|
| 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-choices 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.