Top AI Repos โ open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
๐ช Auto-generate Streamlit UI from Pydantic Models and Dataclasses.
| Date | Stars |
|---|---|
| 2026-07-24 | 595 |
| 2026-07-25 | 595 |
| 2026-07-28 | 595 |
| 2026-07-30 | 595 |
| 2026-08-06 | 595 |
Today
โ stars today
This week
โ stars this week
This month
โ stars this month
Momentum
0.0
growth rate 0.00%/day
<!-- markdownlint-disable MD033 MD041 -->
<h1 align="center">
Streamlit Pydantic
</h1>
<p align="center">
<strong>Auto-generate Streamlit UI elements from Pydantic models.</strong>
</p>
<p align="center">
<a href="https://pypi.org/project/streamlit-pydantic/" title="PyPi Version"><img src="https://img.shields.io/pypi/v/streamlit-pydantic?color=green&style=flat"></a>
<a href="https://pepy.tech/project/streamlit-pydantic"><img src="https://img.shields.io/pypi/dm/streamlit-pydantic"></a>
<a href="https://pypi.org/project/streamlit-pydantic/" title="Python Version"><img src="https://img.shields.io/badge/Python-3.8%2B-blue&style=flat"></a>
<a href="https://github.com/lukasmasuch/streamlit-pydantic/blob/main/LICENSE" title="Project License"><img src="https://img.shields.io/badge/License-MIT-green.svg"></a>
<a href="https://st-pydantic.streamlit.app"><img src="https://static.streamlit.io/badges/streamlit_badge_black_white.svg"></a>
</p>
<p align="center">
<a href="#getting-started">Getting Started</a> โข
<a href="#documentation">Documentation</a> โข
<a href="#support--feedback">Support</a> โข
<a href="https://github.com/lukasmasuch/streamlit-pydantic/issues/new?assignees=&labels=type%3Abug%2Cstatus%3Aneeds-triage&projects=&template=01_bug-report.yml">Report a Bug</a> โข
<a href="#contribution">Contribution</a> โข
<a href="https://github.com/lukasmasuch/streamlit-pydantic/releases">Changelog</a>
</p>
Streamlit-pydantic makes it easy to auto-generate UI elements from [Pydantic](https://github.com/samuelcolvin/pydantic/) models or [dataclasses](https://docs.python.org/3/library/dataclasses.html). Just define your data model and turn it into a full-fledged UI form. It supports data validation, nested models, and field limitations. Streamlit-pydantic can be easily integrated into any Streamlit app.
<img style="width: 100%" src="https://raw.githubusercontent.com/lukasmasuch/streamlit-pydantic/main/docs/images/banner.png"/>
---
<p align="center">
Try out and explore various examples in our playground <a href="https://st-pydantic.streamlit.app/">here</a>.
</p>
---
## Highlights
- ๐ช Auto-generated UI elements from Pydantic models & Dataclasses.
- ๐ Out-of-the-box data validation.
- ๐ Supports nested Pydantic models.
- ๐ Supports field limits and customizations.
- ๐ Easy to integrate into any Streamlit app.
## Getting Started
### Installation
```bash
pip install streamlit-pydantic
```
### Usage
1. Create a script (`my_script.py`) with a Pydantic model and render it via `pydantic_form`:
```python
import streamlit as st
import streamlit_pydantic as sp
from pydantic import BaseModel
class ExampleModel(BaseModel):
some_text: str
some_number: int
some_boolean: bool
data = sp.pydantic_form(key="my_sample_form", model=ExampleModel)
if data:
st.json(data.model_dump())
```
2. Run the Streamlit server on the Python script: `streamlit run my_script.py`
3. You can find additional examples in the [examples](#examples) section below.
## Examples
---
<p align="center">
๐ Try out and explore these examples in our playground <a href="https://st-pydantic.streamlit.app/">here</a>
</p>
---
The following collection of examples demonstrates how Streamlit Pydantic can be applied in more advanced scenarios. You can find additional - even more advanced - examples in the [examples folder](./examples) or on the [playground](https://st-pydantic.streamlit.app/).
### Simple Form
```python
import streamlit as st
import streamlit_pydantic as sp
from pydantic import BaseModel
class ExampleModel(BaseModel):
some_text: str
some_number: int
some_boolean: bool
data = sp.pydantic_form(key="my_sample_form", model=ExampleModel)
if data:
st.json(data.model_dump())
```
### Date Validation
```python
import streamlit as st
import streamlit_pydantic as sp
from pydantic import BaseModel, Field, HtExcerpt of 11,785 characters
Read on GitHubLukas Masuch ยท @streamlit ยท Germany
181
8
2
Jacob Hayes ยท DataDog
1
1
1
Would you bet a product on this? Bounded 0โ100 and slow moving.
matched fp:737cadc7ac72ae36, topic:streamlit, readme:playground
matched fp:737cadc7ac72ae36, topic:json-schema