Turn Pydantic models into interactive Rich terminal forms — with built-in Click & Typer integrations.
Project description
richforms
richforms turns Pydantic models into rich interactive terminal forms.
Installation
You can add richforms to your project with uv.
uv add richforms
Usage
You can start from Python in-process or from the bundled CLI.
Python API
from richforms.example.model import Metadata
from richforms import fill
metadata = fill(Metadata)
print(metadata.model_dump_json(indent=2))
CLI
richforms fill richforms.example.model:Metadata --output project-metadata.json
Integrations
You can integrate richforms directly into Click and Typer option callbacks.
import typer
from richforms.integrations.typer import form_callback
from richforms.example.model import Metadata
app = typer.Typer()
@app.command()
def release(
metadata: Metadata = typer.Option(
None,
callback=form_callback(Metadata),
),
) -> None:
print(metadata.model_dump())
Documentation
For more information, see the documentation.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file richforms-0.6.0.tar.gz.
File metadata
- Download URL: richforms-0.6.0.tar.gz
- Upload date:
- Size: 80.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5d364ca9d5f13c8f33db8c1077f277981c1f9434bfd6b6c00a7b7c84addec2d
|
|
| MD5 |
52f96125deced8bebac9d20c1869b681
|
|
| BLAKE2b-256 |
2fcda455aad385dbd468ca997c5d58d72139b05325fd346472c9b3631e02d7ac
|
Provenance
The following attestation bundles were made for richforms-0.6.0.tar.gz:
Publisher:
publish.yml on shinybrar/richforms
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
richforms-0.6.0.tar.gz -
Subject digest:
e5d364ca9d5f13c8f33db8c1077f277981c1f9434bfd6b6c00a7b7c84addec2d - Sigstore transparency entry: 989644259
- Sigstore integration time:
-
Permalink:
shinybrar/richforms@cb59c1c4eb156fc3627414d2f2dc1efe14449ad7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/shinybrar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cb59c1c4eb156fc3627414d2f2dc1efe14449ad7 -
Trigger Event:
repository_dispatch
-
Statement type:
File details
Details for the file richforms-0.6.0-py3-none-any.whl.
File metadata
- Download URL: richforms-0.6.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a58cb26946ee0202a02e0346437d36ea3fa512ff0afc08e9d0fbb4a59705c49c
|
|
| MD5 |
5172295bd57009ab8d74c34b631ccac4
|
|
| BLAKE2b-256 |
7dc65e3f1a9f6d934312a13dc938f88dc8a025faa5629715afb19f01793cbb1d
|
Provenance
The following attestation bundles were made for richforms-0.6.0-py3-none-any.whl:
Publisher:
publish.yml on shinybrar/richforms
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
richforms-0.6.0-py3-none-any.whl -
Subject digest:
a58cb26946ee0202a02e0346437d36ea3fa512ff0afc08e9d0fbb4a59705c49c - Sigstore transparency entry: 989644310
- Sigstore integration time:
-
Permalink:
shinybrar/richforms@cb59c1c4eb156fc3627414d2f2dc1efe14449ad7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/shinybrar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cb59c1c4eb156fc3627414d2f2dc1efe14449ad7 -
Trigger Event:
repository_dispatch
-
Statement type: