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.

  • Starlette-WTF integrates with Starlette and the FastAPI framework, based on the features of 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.0.0a1.tar.gz (133.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.0.0a1-py3-none-any.whl (132.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: WTForms-3.0.0a1.tar.gz
  • Upload date:
  • Size: 133.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for WTForms-3.0.0a1.tar.gz
Algorithm Hash digest
SHA256 7ee6e0591777e4ad6779276cd64464bd0a8fc1ce2509b5bb88f936c9426c180c
MD5 a39367db6fa6f47fa9a9c6a1dfb50285
BLAKE2b-256 80cffe37c287c6c8c9edb43076fc9bf3cd1a86b4340fd7d9ccdffc481ac98ffb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: WTForms-3.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 132.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for WTForms-3.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf01f0173ff7124ab30afeee444876a0f576fa5ed9c32f2112c439137077492f
MD5 dee7173e2bc7a755ace2ffac9d169ffe
BLAKE2b-256 9235324b276ad1401bff6bbfd129f7432e292d3b78a844fb2c7dec6273f6854c

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