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.0.tar.gz (134.5 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.0-py3-none-any.whl (145.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wtforms-3.1.0.tar.gz
Algorithm Hash digest
SHA256 4edd15771630289a5fa343d58822f72749822ca5a39dd33f92ee917cf72b954b
MD5 a07a4a149eec493c6cc614ee20aed8a0
BLAKE2b-256 4ace238c333d529c325fc8993cb1faf31fd6b8fea6956c1078ca439739ebfc70

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wtforms-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 addd7899004fdf9318eb711d33aae9c1973fe80378257b7383e06de2eff7c559
MD5 789406ddea14a1cb72346ee15ec33f10
BLAKE2b-256 050b35fb7d652da8d99b7defc58f3a3571ffe5169ad42ca8f2b6628a5a3152a2

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