Skip to content

About

pydantic-schemaforms is a Python library for generating server-rendered HTML forms from Pydantic models.

It focuses on:

  • One Pydantic model for the form, its validation and its data
  • HTML that is escaped by construction, built with Python 3.14 t-strings
  • Sync (WSGI) and async (ASGI) rendering, tested with FastAPI and Flask
  • No external requests by default: assets are packaged and inlined, with explicit opt-in for CDNs

If you're new, start with the Tutorial. The Reference lists every input, layout and option.

Project links:

  • Docs: https://devsetgo.github.io/pydantic-schemaforms/
  • GitHub: https://github.com/devsetgo/pydantic-schemaforms
  • PyPI: https://pypi.org/project/pydantic-schemaforms/

About Me

I am a software engineering manager with an eclectic background in various industries (finance, manufacturing, and metrology). I am passionate about software development and love to learn new things.