Skip to main content

Form validation and rendering for Python web development.

Project description

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.

Project details


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.2.0.tar.gz (137.8 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.2.0-py3-none-any.whl (152.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wtforms-3.2.0.tar.gz
  • Upload date:
  • Size: 137.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for wtforms-3.2.0.tar.gz
Algorithm Hash digest
SHA256 8433188faea36077db4513ade7ba0bb671175d2a72de16c198e92760b9298a66
MD5 fa6d78c286bb933a37c16ee11812cbf3
BLAKE2b-256 8327f0b6a02854dcb663048d1e8d50a9e647f678d6e8a6de9fb3365ac10ed635

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wtforms-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 152.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for wtforms-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f377b4c3fdf48e05e36a373bd4402b1dc3b3aab0791418d5e9ad808bee34134
MD5 e47b0611d51dbb0082bd2dc9dce959c7
BLAKE2b-256 2b8c2dd2ae16479611193b08c2a78733694d6299511100dc99644e60a47dda12

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