DearPyGui Forms
Generate GUI forms for your Pydantic models.
Features
- Fill form fields with Pydantic model data
- Fill from fields with default values
- Validation on form submission
- Callbacks for form submission
Currently supported Pydantic fields:
- nested entities
- arrays
- str
- int
- float
- bool
- datetime
- date
- time
- anyOf sequences
Example:
from pprint import pprint
import dearpygui.dearpygui as dpg
from pydantic import BaseModel, Field
from dearpygui_forms import DPGForm
class User(BaseModel):
name: str = Field(default="John Doe", min_length=3)
age: int = Field(ge=18)
class Storage(BaseModel):
users: list[User] = []
class UserForm(DPGForm, model=User):
pass
dpg.create_context()
dpg.create_viewport()
store = Storage()
with dpg.window(label="User Form"):
user_form = UserForm(callback=lambda x: store.users.append(x))
user_form.add()
dpg.add_button(label="Print Users", callback=lambda: pprint(store.model_dump()))
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Metadata
Release files for dearpygui-forms 0.3.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 | Actions |
|---|---|---|---|---|
| dearpygui_forms-0.3.0.tar.gz | 22.0 kB | Without provenance | Details for dearpygui_forms-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dearpygui_forms-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for dearpygui_forms-0.3.0-py3-none-any.whl |
Total release size: 27.2 kB
Release files / dearpygui_forms-0.3.0.tar.gz
| Download URL | dearpygui_forms-0.3.0.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
075bd5ec8da721be361616749ad7c7857163cbb23636b47bc05961dee04d1fa1
|
|
BLAKE2b-256 checksum How to use checksums |
ecc079acfbe7029f425d0b59b6c395d44138a323abe05d1c5e14e8044f1636b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.12
|
Release files / dearpygui_forms-0.3.0-py3-none-any.whl
| Download URL | dearpygui_forms-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b15736f65f9930a3230c24da69d19b96acba5b2f2ca77d9bf27beb517d3b47b3
|
|
BLAKE2b-256 checksum How to use checksums |
474f2744dc81983e5898b4d67d521221844a0913789ee0f72c0d82910509fd7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.12
|
Security for dearpygui-forms 0.3.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.