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-Django provides ORM-backed fields and form generation from Django models, as well as integration with Django’s I18N support.

  • Starlette-WTF integrates with Starlette and the FastAPI framework, based on the features of Flask-WTF.

Download files

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

Source Distribution

WTForms-3.0.0.tar.gz (137.1 kB view details)

Uploaded Source

Built Distribution

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

WTForms-3.0.0-py3-none-any.whl (136.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: WTForms-3.0.0.tar.gz
  • Upload date:
  • Size: 137.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for WTForms-3.0.0.tar.gz
Algorithm Hash digest
SHA256 4abfbaa1d529a1d0ac927d44af8dbb9833afd910e56448a103f1893b0b176886
MD5 f6823b55ecd61d751029cd1d042ba3ca
BLAKE2b-256 8e0c4c273e88f5b5b5757b4532a0d7f1fe9fb7d9843fe57303f162daaad2b7ce

See more details on using hashes here.

File details

Details for the file WTForms-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: WTForms-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 136.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for WTForms-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 232dbb0094847dca2f45c72136b5ca1d5dca2a3e24ccd2229823b8b74b3c6698
MD5 309cdf0eef6a7f7b440a16999b66e45d
BLAKE2b-256 9a3858698b4bfbc0e93200af1fbe886cc6eb1ff31232b9224b4ebc12356e2f18

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