Socket
Socket
Sign inDemoInstall

WTForms

Package Overview
Dependencies
1
Maintainers
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    WTForms

Form validation and rendering for Python web development.


Maintainers
2

Readme

WTForms

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:

.. code-block:: text

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.

.. _Flask-WTF: https://flask-wtf.readthedocs.io/ .. _WTForms-Alchemy: https://wtforms-alchemy.readthedocs.io/ .. _WTForms-SQLAlchemy: https://github.com/wtforms/wtforms-sqlalchemy .. _WTForms-AppEngine: https://github.com/wtforms/wtforms-appengine .. _WTForms-Django: https://github.com/wtforms/wtforms-django .. _WTForms-Bootstrap5: https://github.com/LaunchPlatform/wtforms-bootstrap5 .. _Starlette-WTF: https://github.com/muicss/starlette-wtf .. _Bootstrap-Flask: https://github.com/helloflask/bootstrap-flask

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc