https://github.com/workfloworchestrator/pydantic-forms-example
Example implementation using pydantic-forms backend and frontend
https://github.com/workfloworchestrator/pydantic-forms-example
Last synced: about 1 year ago
JSON representation
Example implementation using pydantic-forms backend and frontend
- Host: GitHub
- URL: https://github.com/workfloworchestrator/pydantic-forms-example
- Owner: workfloworchestrator
- Created: 2024-11-14T12:52:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T14:54:08.000Z (over 1 year ago)
- Last Synced: 2025-02-25T05:34:53.032Z (over 1 year ago)
- Language: Python
- Size: 185 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pydantic forms example
This repository contains a working example of a [FastAPI][1] application with the pydantic forms frontend and backend modules working together.
It shows how you can use the [pydantic forms pypy module][2] on top of pydantic models to automatically generate forms on the frontend using the [pydantic forms npm module][3] that ask for user input. It also show validation and processing of the user input.
[1]: https://fastapi.tiangolo.com/
[2]: https://pypi.org/project/pydantic-forms
[3]: https://www.npmjs.com/package/pydantic-forms
## installation
To install using a virtual environment:
```
$ python venv env
$ source env/bin/activate
$ pip install -r requirements.txt
$ fastapi dev main.py
```