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-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.

Release files for WTForms 3.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WTForms 3.2.2
File Size Uploaded
wtforms-3.2.2.tar.gz 139.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WTForms 3.2.2
File Interpreter ABI Platform
wtforms-3.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 298.2 kB

Release files / wtforms-3.2.2.tar.gz

Download URL wtforms-3.2.2.tar.gz
Size 139.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7b00c73f8670f35d4edb0293dcd81b980528bee72fd662b182aaba27ae570b93
BLAKE2b-256 checksum
How to use checksums
e991ed9b517da898e3fb747566aa3c12a734bd64ea7449a0d25ec74ce8f8b8eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / wtforms-3.2.2-py3-none-any.whl

Download URL wtforms-3.2.2-py3-none-any.whl
Size 158.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72b90d5d921bd3119252069cf0301e9c13915f9e52792652bc91c5dda4b79e56
BLAKE2b-256 checksum
How to use checksums
1876bb225c8300f3a0ba28e01df51419c6c9574a297c43d71b29048e03b65deb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page