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.

  • WTForms-Bootstrap5 provides Bootstrap 5 favor renderer with great customizability.

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

  • Bootstrap-Flask Bootstrap-Flask is a collection of Jinja macros for Bootstrap 4 & 5 and Flask using 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.1.1.tar.gz (134.3 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.1.1-py3-none-any.whl (145.4 kB view details)

Uploaded Python 3

File details

Details for the file wtforms-3.1.1.tar.gz.

File metadata

  • Download URL: wtforms-3.1.1.tar.gz
  • Upload date:
  • Size: 134.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.0

File hashes

Hashes for wtforms-3.1.1.tar.gz
Algorithm Hash digest
SHA256 5e51df8af9a60f6beead75efa10975e97768825a82146a65c7cbf5b915990620
MD5 e54df804baf4bc68e17f5dd175c57d25
BLAKE2b-256 169f7d8e2c7dcf2e2bc60e65e7ac833857e6e5f3d4e7505dcd3e7da2fd539e4d

See more details on using hashes here.

File details

Details for the file wtforms-3.1.1-py3-none-any.whl.

File metadata

  • Download URL: wtforms-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 145.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.0

File hashes

Hashes for wtforms-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae7c54b29806c70f7bce8eb9f24afceb10ca5c32af3d9f04f74d2f66ccc5c7e0
MD5 6b2195a12acad4b044ac2c1faa217b5a
BLAKE2b-256 3e5ddfe0b6c9173f3faa7cd8059497a4ec09e5a3c4ea685e9eb2dc29d2092f44

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