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.
Links
Documentation: https://wtforms.readthedocs.io/
Releases: https://pypi.org/project/WTForms/
Issue tracker: https://github.com/pallets-eco/wtforms/issues
Discord Chat: https://discord.gg/F65P7Z9
Translation: https://hosted.weblate.org/projects/wtforms/wtforms/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wtforms-3.2.1.tar.gz
.
File metadata
- Download URL: wtforms-3.2.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | df3e6b70f3192e92623128123ec8dca3067df9cfadd43d59681e210cfb8d4682 |
|
MD5 | 58a16ec4a96043b429c196bfafa5fd96 |
|
BLAKE2b-256 | 01e4633d080897e769ed5712dcfad626e55dbd6cf45db0ff4d9884315c6a82da |
File details
Details for the file wtforms-3.2.1-py3-none-any.whl
.
File metadata
- Download URL: wtforms-3.2.1-py3-none-any.whl
- Upload date:
- Size: 152.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583bad77ba1dd7286463f21e11aa3043ca4869d03575921d1a1698d0715e0fd4 |
|
MD5 | 429782825fab2a98ae7ec009597e7694 |
|
BLAKE2b-256 | 08c92088fb5645cd289c99ebe0d4cdcc723922a1d8e1beaefb0f6f76dff9b21c |