Dearpygui extention for autogeneration forms powered by pydantic.
Project description
Example:
import dearpygui.dearpygui as dpg
from pydantic import BaseModel
from dearpygui_forms import DPGForm
class User(BaseModel):
name: str
age: int
class UserForm(DPGForm):
__pydantic_model__ = User
dpg.create_context()
dpg.create_viewport()
with dpg.window(label="User Form"):
user_form = UserForm(callback=lambda x: print(x))
user_form.add()
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
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
dearpygui_forms-0.1.3.tar.gz
(9.3 kB
view details)
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 dearpygui_forms-0.1.3.tar.gz.
File metadata
- Download URL: dearpygui_forms-0.1.3.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd2a674a761c432892257ae9b8df2c858b1c37df5d0fdc6bf97324ce5fd25df7
|
|
| MD5 |
c0489b3b4b04b22b83931e53d05fb873
|
|
| BLAKE2b-256 |
875ca70621cac481e4308a0808aad591ed4e1bbf6c88b9f7acf284b0e700f12f
|
File details
Details for the file dearpygui_forms-0.1.3-py3-none-any.whl.
File metadata
- Download URL: dearpygui_forms-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9b7feb32ce93bd86ada4ee6d4007ecd6365a395e00b798dfd3389082c83436a
|
|
| MD5 |
58015c8d5507ba838b8afc83de492bb8
|
|
| BLAKE2b-256 |
c44b30b63dd00d62e72ecb9ecb802d5e112d5d91bb90a7eb0ec835f777cb2944
|