WTForms VS flask-wtf

Compare WTForms vs flask-wtf and see what are their differences.

WTForms

A flexible forms validation and rendering library for Python. (by wtforms)

flask-wtf

Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration. (by wtforms)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
WTForms flask-wtf
5 4
1,460 1,435
0.6% 1.0%
8.4 6.9
20 days ago 22 days ago
Python Python
BSD 3-clause "New" or "Revised" License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

WTForms

Posts with mentions or reviews of WTForms. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-15.

flask-wtf

Posts with mentions or reviews of flask-wtf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-30.
  • How do you validate the json data in request?
    1 project | /r/flask | 2 Oct 2021
    Then I get the validation error even if the fields have proper values. I am not able to find anything relevant via Google search that's why I here for help.. Now I want to add validation to the JSON fields and I came to about the Flask-WTF package by doing some googling.
  • How does Flask know what form is?
    1 project | /r/flask | 18 Sep 2021
    As said in a comment bellow by u/dsaw12, flask-wtf does it all for you. You can read through the source code here. To answer your question, flask-wtf does it for you in this code block. Even if the form was just created there is also code to check if the request give was a POST, PUT, PATCH, or DELETE; after which it then checks if the form was submitted through an _is_submitted() method with in your form class.
  • Is my user session cookie secure?
    3 projects | /r/flask | 30 May 2021

What are some alternatives?

When comparing WTForms and flask-wtf you can also consider the following projects:

django-crispy-forms - The best way to have DRY Django forms. The app provides a tag and filter that lets you quickly render forms in a div format while providing an enormous amount of capability to configure and control the rendered HTML.

flask-login - Flask user session management.

marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.

bootstrap-flask - Bootstrap 4 & 5 helper for your Flask projects.

Deform - A Python HTML form library.

eq-survey-runner - eQ Survey Runner

WTForms-JSON - Adds smart json support for WTForms. Useful for when using WTForms with RESTful APIs.

flask-mongoengine - MongoEngine flask extension with WTF model forms support

django-remote-forms - A platform independent django form serializer

Threaded-Replies-using-Flask-SQLAlchemy-MySQL - A Python Flask app with a MySQL database that implements a nested/threaded replies commenting engine. SQLAlchemy is used as the ORM.

Streaming multipart/form-data parser - Streaming (and fast!) parser for multipart/form-data written in Cython

django-bootstrap4 - Bootstrap 4 integration with Django.