WTForms
colander
Our great sponsors
WTForms | colander | |
---|---|---|
5 | - | |
1,462 | 440 | |
0.8% | 0.2% | |
8.3 | 1.9 | |
21 days ago | 2 months ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
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
-
Best library for validating form/request/whatever data?
I know about WTForms. Are there similar packages that you would recommend?
-
Using HTML5 fields with WTForms
I then ended up on the WTForms github page, and found that actually there is support for all the new HTML5 fields, but that these fields aren't imported by default. https://github.com/wtforms/wtforms/blob/master/wtforms/fields/html5.py Therefore instead of using
-
Flask_wtf custom validator RequiredIf not working with fieldlist / formfields
class RequiredIf(object): #validator which makes a field required depending on value of another field # Source: https://stackoverflow.com/questions/8463209/how-to-make-a-field-conditionally-optional-in-wtforms # source: https://github.com/wtforms/wtforms/issues/623
-
Flask + Ajax Error: Dynamic SelectField shows "Not a valid choice"
https://github.com/wtforms/wtforms/blob/22e2cf97c65ed38911543d247ccb0fc2207e0da3/src/wtforms/fields/core.py#L564-L575
-
Pre-populate edit form from model with relationships
Yeah, you can populate it even on the frontend and it will work. There is a possible solution: https://github.com/wtforms/wtforms/issues/434#issuecomment-499400017
colander
We haven't tracked posts mentioning colander yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
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.
Cerberus - Lightweight, extensible data validation library for Python
marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.
jsonschema - An implementation of the JSON Schema specification for Python
Deform - A Python HTML form library.
Schematics - Python Data Structures for Humans™.
flask-wtf - Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration.
voluptuous - CONTRIBUTIONS ONLY: Voluptuous, despite the name, is a Python data validation library.
WTForms-JSON - Adds smart json support for WTForms. Useful for when using WTForms with RESTful APIs.
schema - Schema validation just got Pythonic
django-remote-forms - A platform independent django form serializer
valideer - Lightweight data validation and adaptation Python library.