A flexible forms validation and rendering library for Python.
Python
Latest commit 9a0908f Jan 3, 2017 @stephane stephane committed with davidism Fix french translations (#317)
* Fix French translations

The French word 'invalide' is reserved for person with disabilities.
https://fr.wiktionary.org/wiki/invalides

Other changes based on tex.loria.fr/typographie/typo.pdf

* Add compiled French translations

README.md

What is WTForms?

Build Status Coverage Status Documentation Status

WTForms is a flexible forms validation and rendering library for python web development.

To get started using WTForms, we recommend reading the crash course on the docs site: https://wtforms.readthedocs.io/en/stable/

If you downloaded the package from PyPI, there will also be a prebuilt copy of the html documentation in the docs/html/ directory.

Why use WTForms?

Installation

The easiest way to install WTForms is using pip:

pip install WTForms

If you downloaded a source tarball, or cloned the repository, you can install using setup.py:

python setup.py install

You can also simply place the wtforms subdirectory somewhere on your python path. This can be useful if you deploy on Google App Engine for example.

Third-Party Library Integrations

WTForms works with most web frameworks very well; but there are a number of tools available that make integration with database ORM's, environments, and frameworks even better - either reducing boilerplate or adding features like query fields, etc.

  • Flask-WTF is an integration with the Flask framework providing a solid default CSRF configuration, file upload support, flask-i18n integration, and more.
  • WTForms-Appengine provides ORM-backed fields and form generation from Appengine db/ndb schema
  • WTForms-SQLAlchemy provides ORM-backed fields and generation of forms from models.
  • WTForms-Alchemy provides powerful model forms support