Skip to main content

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.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WTForms-2.3.0.tar.gz (160.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WTForms-2.3.0-py2.py3-none-any.whl (166.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file WTForms-2.3.0.tar.gz.

File metadata

  • Download URL: WTForms-2.3.0.tar.gz
  • Upload date:
  • Size: 160.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.2

File hashes

Hashes for WTForms-2.3.0.tar.gz
Algorithm Hash digest
SHA256 8f30dbcb9cfad9e8f663ad8480aba7c42a41d8beebe9c6fd506ced514f3fd127
MD5 3857c6c761992233216f23250bb62f10
BLAKE2b-256 baf8ab86f2b5e7d7c8f2654b814b29e64e8571f5e814d5c175f5bcdbf842b26f

See more details on using hashes here.

File details

Details for the file WTForms-2.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: WTForms-2.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 166.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.2

File hashes

Hashes for WTForms-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 21828fbf05cb07a6500df4e20c39b2550f08efd9c6f7900471d022ae97d4f0b3
MD5 ffe290e7239f606492cc2d0c463c2150
BLAKE2b-256 29e9eaa702d33d6cb46a2540a7b84110e26831ed0b2d662696e375d1ad16656e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page