A flexible forms validation and rendering library for Python.
Clone or download
alanhamlett Merge pull request #429 from alanhamlett/ahamlett-email_validation_us…
…ing_library

use email_validator library for Email validator instead of regex
Latest commit 283b280 Jul 23, 2018

README.rst

WTForms

WTForms is a flexible forms validation and rendering library for Python web development. It is framework agnostic and can work with whatever web framework and template engine you choose. There are various community libraries that provide closer integration with popular frameworks.

To get started using WTForms, we recommend reading the crash course in the docs.

Installation

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.

Links