kandi background
Explore Kits

28 best Python Form Validation libraries in 2023

by weaver Updated: Sep 1, 2021

Python is an indispensable tool for many programmers. With it, you can do away with all the repetitive and tedious work involved with other scripting languages. For a technical process like form validation, with Python, you can ensure that the input text is in the correct format (including both after submitting and inline validation). Hence, when you build an application that accepts user input, you can verify that the data that enters your application is valid, consistent, and secure with various open-source Python libraries.

Here we list down some of those libraries which are useful for form validation. Say, with pydantic, you can define custom data types, parse input data, and then validate it. Using type hints, the library can even coerce input data to the declared types and accumulate errors using ValidationError. pydantic is also easily discoverable given how well it has been documented. Another application, Django-crispy-forms helps you manage Django forms by allowing you to adjust their properties (say, CSS classes, send button, etc.) on the backend. This means you no longer have to rewrite anything in the template. We also have Formspree, which is a backend, API, and email service for HTML and JavaScript forms. It is secure with a honeypot to prevent spam and is the simplest way to embed customized order forms, “Contact Us” forms, and dialogue boxes meant to capture email.

pydanticby samuelcolvin

Python star image 9557 Version:v1.9.0

License: Permissive (MIT)

Data parsing and validation using Python type hints

Support
Quality
Security
License
Reuse

pydanticby samuelcolvin

Python star image 9557 Version:v1.9.0 License: Permissive (MIT)

Data parsing and validation using Python type hints
Support
Quality
Security
License
Reuse

marshmallowby marshmallow-code

Python star image 6411 Version:3.19.0

License: Permissive (MIT)

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

Support
Quality
Security
License
Reuse

marshmallowby marshmallow-code

Python star image 6411 Version:3.19.0 License: Permissive (MIT)

A lightweight library for converting complex objects to and from simple Python datatypes.
Support
Quality
Security
License
Reuse

django-crispy-formsby django-crispy-forms

Python star image 4618 Version:1.14.0

License: Permissive (MIT)

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.

Support
Quality
Security
License
Reuse

django-crispy-formsby django-crispy-forms

Python star image 4618 Version:1.14.0 License: Permissive (MIT)

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.
Support
Quality
Security
License
Reuse

connexionby zalando

Python star image 3888 Version:2.10.0

License: Others (Non-SPDX)

Swagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 support

Support
Quality
Security
License
Reuse

connexionby zalando

Python star image 3888 Version:2.10.0 License: Others (Non-SPDX)

Swagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 support
Support
Quality
Security
License
Reuse

formspreeby formspree

Python star image 2786 Version:Current

License: Others (Non-SPDX)

Easy HTML form without PHP or JavaScript

Support
Quality
Security
License
Reuse

formspreeby formspree

Python star image 2786 Version:Current License: Others (Non-SPDX)

Easy HTML form without PHP or JavaScript
Support
Quality
Security
License
Reuse

sqlparseby andialbrecht

Python star image 3129 Version:0.4.3

License: Permissive (BSD-3-Clause)

A non-validating SQL parser module for Python

Support
Quality
Security
License
Reuse

sqlparseby andialbrecht

Python star image 3129 Version:0.4.3 License: Permissive (BSD-3-Clause)

A non-validating SQL parser module for Python
Support
Quality
Security
License
Reuse

cerberusby pyeve

Python star image 2903 Version:1.3.4

License: Permissive (ISC)

Lightweight, extensible data validation library for Python

Support
Quality
Security
License
Reuse

cerberusby pyeve

Python star image 2903 Version:1.3.4 License: Permissive (ISC)

Lightweight, extensible data validation library for Python
Support
Quality
Security
License
Reuse

schemaby keleshev

Python star image 2708 Version:0.7.5

License: Permissive (MIT)

Schema validation just got Pythonic

Support
Quality
Security
License
Reuse

schemaby keleshev

Python star image 2708 Version:0.7.5 License: Permissive (MIT)

Schema validation just got Pythonic
Support
Quality
Security
License
Reuse

SublimePrettyJsonby dzhibas

Python star image 1959 Version:1.3.1

License: Permissive (MIT)

Prettify/Minify/Query/Goto/Validate/Lint JSON plugin for Sublime Text 3 & 4

Support
Quality
Security
License
Reuse

SublimePrettyJsonby dzhibas

Python star image 1959 Version:1.3.1 License: Permissive (MIT)

Prettify/Minify/Query/Goto/Validate/Lint JSON plugin for Sublime Text 3 & 4
Support
Quality
Security
License
Reuse

django-widget-tweaksby jazzband

Python star image 1816 Version:1.4.12

License: Permissive (MIT)

Tweak the form field rendering in templates, not in python-level form definitions. CSS classes and HTML attributes can be altered.

Support
Quality
Security
License
Reuse

django-widget-tweaksby jazzband

Python star image 1816 Version:1.4.12 License: Permissive (MIT)

Tweak the form field rendering in templates, not in python-level form definitions. CSS classes and HTML attributes can be altered.
Support
Quality
Security
License
Reuse

panderaby pandera-dev

Python star image 1240 Version:0.13.4

License: Permissive (MIT)

A light-weight, flexible, and expressive data validation library for dataframes

Support
Quality
Security
License
Reuse

panderaby pandera-dev

Python star image 1240 Version:0.13.4 License: Permissive (MIT)

A light-weight, flexible, and expressive data validation library for dataframes
Support
Quality
Security
License
Reuse

wtformsby wtforms

Python star image 1371 Version:3.0.1

License: Permissive (BSD-3-Clause)

A flexible forms validation and rendering library for Python.

Support
Quality
Security
License
Reuse

wtformsby wtforms

Python star image 1371 Version:3.0.1 License: Permissive (BSD-3-Clause)

A flexible forms validation and rendering library for Python.
Support
Quality
Security
License
Reuse

ohmyformby ohmyform

Python star image 2170 Version:1.0.3

License: Strong Copyleft (AGPL-3.0)

✏️ Free open source alternative to TypeForm, TellForm, or Google Forms ⛺

Support
Quality
Security
License
Reuse

ohmyformby ohmyform

Python star image 2170 Version:1.0.3 License: Strong Copyleft (AGPL-3.0)

✏️ Free open source alternative to TypeForm, TellForm, or Google Forms ⛺
Support
Quality
Security
License
Reuse

django-simple-captchaby mbi

Python star image 1284 Version:0.5.17

License: Permissive (MIT)

Django Simple Captcha is an extremely simple, yet highly customizable Django application to add captcha images to any Django form.

Support
Quality
Security
License
Reuse

django-simple-captchaby mbi

Python star image 1284 Version:0.5.17 License: Permissive (MIT)

Django Simple Captcha is an extremely simple, yet highly customizable Django application to add captcha images to any Django form.
Support
Quality
Security
License
Reuse

django-phonenumber-fieldby stefanfoulis

Python star image 1322 Version:7.0.1

License: Permissive (MIT)

A django model and form field for normalised phone numbers using python-phonenumbers

Support
Quality
Security
License
Reuse

django-phonenumber-fieldby stefanfoulis

Python star image 1322 Version:7.0.1 License: Permissive (MIT)

A django model and form field for normalised phone numbers using python-phonenumbers
Support
Quality
Security
License
Reuse

brigadierby timsutton

Python star image 1605 Version:0.2.6

License: Permissive (MIT)

Fetch and install Boot Camp ESDs with ease.

Support
Quality
Security
License
Reuse

brigadierby timsutton

Python star image 1605 Version:0.2.6 License: Permissive (MIT)

Fetch and install Boot Camp ESDs with ease.
Support
Quality
Security
License
Reuse

django-moneyby django-money

Python star image 1373 Version:3.0.0

License: Others (Non-SPDX)

Money fields for Django forms and models.

Support
Quality
Security
License
Reuse

django-moneyby django-money

Python star image 1373 Version:3.0.0 License: Others (Non-SPDX)

Money fields for Django forms and models.
Support
Quality
Security
License
Reuse

django-smart-selectsby jazzband

Python star image 921 Version:1.6.0

License: Permissive (BSD-3-Clause)

chained and grouped selects for django forms

Support
Quality
Security
License
Reuse

django-smart-selectsby jazzband

Python star image 921 Version:1.6.0 License: Permissive (BSD-3-Clause)

chained and grouped selects for django forms
Support
Quality
Security
License
Reuse

awesome-fraud-detection-papersby benedekrozemberczki

Python star image 1262 Version:v_0005

License: Permissive (CC0-1.0)

A curated list of data mining papers about fraud detection.

Support
Quality
Security
License
Reuse

awesome-fraud-detection-papersby benedekrozemberczki

Python star image 1262 Version:v_0005 License: Permissive (CC0-1.0)

A curated list of data mining papers about fraud detection.
Support
Quality
Security
License
Reuse

django-recaptchaby praekelt

Python star image 761 Version:2.0.6

License: Permissive (BSD-3-Clause)

Django reCAPTCHA form field/widget integration app.

Support
Quality
Security
License
Reuse

django-recaptchaby praekelt

Python star image 761 Version:2.0.6 License: Permissive (BSD-3-Clause)

Django reCAPTCHA form field/widget integration app.
Support
Quality
Security
License
Reuse

data-validationby tensorflow

Python star image 690 Version:v1.12.0

License: Permissive (Apache-2.0)

Library for exploring and validating machine learning data

Support
Quality
Security
License
Reuse

data-validationby tensorflow

Python star image 690 Version:v1.12.0 License: Permissive (Apache-2.0)

Library for exploring and validating machine learning data
Support
Quality
Security
License
Reuse

pyformsby UmSenhorQualquer

Python star image 555 Version:4.0.3

License: Permissive (MIT)

Python layer of Windows forms, based on PyQt and OpenGL

Support
Quality
Security
License
Reuse

pyformsby UmSenhorQualquer

Python star image 555 Version:4.0.3 License: Permissive (MIT)

Python layer of Windows forms, based on PyQt and OpenGL
Support
Quality
Security
License
Reuse

enforceby RussBaz

Python star image 512 Version:0.3.4

License: No License (null)

Python 3.5+ runtime type checking for integration testing and data validation

Support
Quality
Security
License
Reuse

enforceby RussBaz

Python star image 512 Version:0.3.4 License: No License

Python 3.5+ runtime type checking for integration testing and data validation
Support
Quality
Security
License
Reuse

UhOh365by Raikia

Python star image 506 Version:Current

License: Strong Copyleft (GPL-3.0)

A script that can see if an email address is valid in Office365 (user/email enumeration). This does not perform any login attempts, is unthrottled, and is incredibly useful for social engineering assessments to find which emails exist and which don't.

Support
Quality
Security
License
Reuse

UhOh365by Raikia

Python star image 506 Version:Current License: Strong Copyleft (GPL-3.0)

A script that can see if an email address is valid in Office365 (user/email enumeration). This does not perform any login attempts, is unthrottled, and is incredibly useful for social engineering assessments to find which emails exist and which don't.
Support
Quality
Security
License
Reuse

ystockquoteby cgoldberg

Python star image 504 Version:0.2.5

License: No License (null)

Fetch stock quote data from Yahoo Finance

Support
Quality
Security
License
Reuse

ystockquoteby cgoldberg

Python star image 504 Version:0.2.5 License: No License

Fetch stock quote data from Yahoo Finance
Support
Quality
Security
License
Reuse

django-formtoolsby jazzband

Python star image 634 Version:2.4

License: Permissive (BSD-3-Clause)

A set of high-level abstractions for Django forms

Support
Quality
Security
License
Reuse

django-formtoolsby jazzband

Python star image 634 Version:2.4 License: Permissive (BSD-3-Clause)

A set of high-level abstractions for Django forms
Support
Quality
Security
License
Reuse

validate_emailby syrusakbary

Python star image 481 Version:1.3

License: Others (Non-SPDX)

Validate_email verify if an email address is valid and really exists

Support
Quality
Security
License
Reuse

validate_emailby syrusakbary

Python star image 481 Version:1.3 License: Others (Non-SPDX)

Validate_email verify if an email address is valid and really exists
Support
Quality
Security
License
Reuse

typesystemby encode

Python star image 430 Version:0.4.1

License: Permissive (BSD-3-Clause)

Data validation, serialization, deserialization & form rendering. 🔢

Support
Quality
Security
License
Reuse

typesystemby encode

Python star image 430 Version:0.4.1 License: Permissive (BSD-3-Clause)

Data validation, serialization, deserialization & form rendering. 🔢
Support
Quality
Security
License
Reuse

See similar Kits and Libraries

Python