Metadata-Version: 2.4
Name: guardrails-ai-valid-choices
Version: 0.1.0
Summary: Checks if a given string is a valid choice from a list of choices.
Author: Guardrails AI
License-Expression: MIT
Project-URL: Homepage, https://guardrailsai.com
Project-URL: Repository, https://github.com/guardrails-ai/guardrails-hub-monorepo/tree/main/valid_choices/py
Project-URL: Documentation, https://guardrails-ai.github.io/guardrails-hub-monorepo/autoapi/guardrails_ai/valid_choices/index.html
Requires-Python: <4,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: guardrails-ai>=0.4.0
Provides-Extra: dev
Requires-Dist: ruff; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: coverage>=7.6.12; extra == "dev"
Requires-Dist: pyright[nodejs]>=1.1.396; extra == "dev"
Dynamic: license-file

# guardrails-ai-valid-choices

Checks if a given string is a valid choice from a list of choices.

## Installation

```bash
pip install guardrails-ai-valid-choices
```

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

```bash
python -m guardrails_ai.valid_choices.post_install
```

## Usage

```python
from guardrails import Guard
from guardrails_ai.valid_choices import ValidChoices

guard = Guard().use(ValidChoices)
```

## License

MIT — © Guardrails AI.
