Flask Inputs

screenshot of Flask Inputs

Incoming request data validation

Overview

Flask-Inputs is an extension designed to enhance WTForms by providing capabilities to validate various types of request data, including arguments, headers, and JSON. While WTForms excels in validating POST data, Flask-Inputs fills the gap for validating other request types, making it a handy tool for developers working with Flask applications. However, it's important to note that this package is no longer maintained, last supporting up to Python 3.8.

As a tool designed to bolster data validation within Flask applications, Flask-Inputs is particularly useful for developers looking to ensure that their applications are robust and less prone to errors related to incoming data. Although it offers valuable functionality, users should be aware of its discontinued support before integrating it into new projects.

Features

  • Comprehensive Validation: Easily validate request data from multiple sources, including query parameters, headers, and JSON payloads.
  • WTForms Integration: Seamlessly integrates with WTForms, allowing developers to leverage existing form validation practices.
  • Simplicity: Designed to be straightforward to install and use, making it a user-friendly option for developers of all skill levels.
  • JSON Schema Support: For enhanced JSON validation, Flask-Inputs relies on the jsonschema library, which provides powerful tools for validating JSON data structures.
  • Open Source Flexibility: The project is open for contributions, enabling developers to fork and improve upon the existing codebase.
  • MIT License: Released under the MIT license, it offers great flexibility for commercial and personal use.