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.1.tar.gz (137.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.1-py3-none-any.whl (136.5 kB view details)

Uploaded Python 3

File details

Details for the file WTForms-3.0.1.tar.gz.

File metadata

  • Download URL: WTForms-3.0.1.tar.gz
  • Upload date:
  • Size: 137.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for WTForms-3.0.1.tar.gz
Algorithm Hash digest
SHA256 6b351bbb12dd58af57ffef05bc78425d08d1914e0fd68ee14143b7ade023c5bc
MD5 509a985769df13938c8307b55a614773
BLAKE2b-256 9a7dd4aa68f5bfcb91dd61a7faf0e862512ae7b3d531c41f24c217910aec0559

See more details on using hashes here.

File details

Details for the file WTForms-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: WTForms-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 136.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for WTForms-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 837f2f0e0ca79481b92884962b914eba4e72b7a2daaf1f939c890ed0124b834b
MD5 920406c87346dffd2b7d52e0aaec0244
BLAKE2b-256 eb2e199a0edf6577af771a68fbd950d98f0c1a16bb5fa956e45772005318c702

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