A flexible forms validation and rendering library for Python.
WTForms is a flexible forms validation and rendering library for Python
web development. It can work with whatever web framework and template
engine you choose. It supports data validation, CSRF protection,
internationalization (I18N), and more. There are various community
libraries that provide closer integration with popular frameworks.
Install and update using pip:
… code-block:: text
pip install -U WTForms
WTForms is designed to work with any web framework and template engine.
There are a number of community-provided libraries that make integrating
with frameworks even better.
Flask-WTF
_ integrates with the Flask framework. It canWTForms-Alchemy
_ provides rich support for generating forms fromWTForms-SQLAlchemy
_ provides ORM-backed fields and form generationWTForms-Bootstrap5
_ provides Bootstrap 5 favor renderer withStarlette-WTF
_ integrates with Starlette and the FastAPIBootstrap-Flask
_ Bootstrap-Flask is a collection of Jinja macros… _Flask-WTF: https://flask-wtf.readthedocs.io/
… _WTForms-Alchemy: https://wtforms-alchemy.readthedocs.io/
… _WTForms-SQLAlchemy: https://github.com/pallets-eco/wtforms-sqlalchemy
… _WTForms-Bootstrap5: https://github.com/LaunchPlatform/wtforms-bootstrap5
… _Starlette-WTF: https://github.com/muicss/starlette-wtf
… _Bootstrap-Flask: https://github.com/helloflask/bootstrap-flask