A flexible forms validation and rendering library for Python web development.
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:
pip install -U WTForms
Third-Party Library Integrations
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 can automatically load data from the request, uses Flask-Babel to translate based on user-selected locale, provides full-application CSRF, and more.
- WTForms-Alchemy provides rich support for generating forms from SQLAlchemy models, including an expanded set of fields and validators.
- WTForms-SQLAlchemy provides ORM-backed fields and form generation from SQLAlchemy models.
- WTForms-AppEngine provides ORM-backed fields and form generation from AppEnding db/ndb schema
- WTForms-AppEngine provides ORM-backed fields and form generation from Django models, as well as integration with Django’s I18N support.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size WTForms-2.3.3-py2.py3-none-any.whl (169.1 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size WTForms-2.3.3.tar.gz (162.9 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for WTForms-2.3.3-py2.py3-none-any.whl