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.2.tar.gz (134.7 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.2-py3-none-any.whl (146.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wtforms-3.1.2.tar.gz
Algorithm Hash digest
SHA256 f8d76180d7239c94c6322f7990ae1216dae3659b7aa1cee94b6318bdffb474b9
MD5 722bf234789979ed2ff06e8e9323fa0f
BLAKE2b-256 6ac796d10183c3470f1836846f7b9527d6cb0b6c2226ebca40f36fa29f23de60

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wtforms-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf831c042829c8cdbad74c27575098d541d039b1faa74c771545ecac916f2c07
MD5 b74dcfb42191435779d678e94f06b7d7
BLAKE2b-256 1819c3232f35e24dccfad372e9f341c4f3a1166ae7c66e4e1351a9467c921cc1

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