richforms
Turn Pydantic data models into interactive terminal forms.
-
ð Get Started
Install
richforms, define a model, and run your first form. -
ðŧ Use the CLI
Use
richformsto collect and update forms from the terminal. -
ð Embed in Python
Call
fill,edit, andcollect_dictdirectly in your tools. -
ðŠĪ Integrate with frameworks
Plug into existing Click and Typer command options.
What richforms gives you
You get consistent input flows across all workflows with minimal custom code.
- Schema-first forms: Use your existing Pydantic models as the source of truth.
- Repair loops: Re-prompt only fields that fail model validation.
- Typed prompting: Show required state, defaults, type hints, and choices.
- Flexible output: Keep values in memory or write JSON and YAML files.