skillfed

WTForms-JSON

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

wtforms-json v0.3.5 381.2K downloads/30d#7,097 on PyPI142
Permissive license BSD Abandoned released

What it is and what it does

WTForms-JSON bridges WTForms validation and JSON input by providing methods to populate and validate forms directly from JSON data. It's designed for REST API developers who want to reuse WTForms' declarative validation logic without parsing JSON manually into form fields.

The package has no runtime dependencies beyond WTForms itself, making it lightweight to add to an existing project. However, it has been abandoned since 2022-04-16 with no maintenance activity, meaning bugs, compatibility issues with newer Python or WTForms versions, and security concerns will not be addressed by the original author.

Use it for:

  • Validate incoming JSON payloads in REST API endpoints using existing WTForms form definitions.
  • Populate WTForms fields directly from JSON request bodies without manual field-by-field assignment.
  • Reuse server-side form validation logic for API requests in addition to traditional HTML form submissions.
  • Enforce consistent validation rules across both web forms and JSON API clients using a single form schema.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Adds JSON parsing and validation support to WTForms, enabling form validation against JSON data in RESTful API contexts.

No. The package is abandoned and has not been maintained since 2022-04-16. While it carries no known vulnerabilities and uses a permissive license, the lack of active maintenance means compatibility issues with modern Python versions and WTForms releases are likely unresolved. For new projects, consider maintained alternatives or implement JSON validation directly.

Install

wtforms-json on PyPI

pip

pip install wtforms-json

uv

uv add wtforms-json

poetry

poetry add wtforms-json

Installing WTForms-JSON

Before you install

High install friction with no runtime dependencies. The package is abandoned—last release was 2022-04-16 with no maintenance activity since then.

License in practice

BSD license (permissive) places no restrictions on use, modification, or distribution.

Quickstart

pip install WTForms-JSON

import wtforms_json
from wtforms import Form, StringField

wtforms_json.init()
form = MyForm.from_json(json_data)

Requires WTForms to be installed separately; no version constraint is specified, so compatibility with newer WTForms releases is uncertain.

Verify before relying

  • Whether the package works reliably with current WTForms versions and modern Python releases despite abandonment.
  • Whether JSON parsing behavior handles edge cases or malformed input gracefully.
  • Active community forks or maintained alternatives that may have superseded this package.

Package facts

License BSD (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 1,581 days since the last release
Last repo commit
First released
Downloads 381,236/month — #7,097 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: WTForms-JSON-0.3.5.tar.gz

Environment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules

Tags

wtforms json validationjson form validationrest api form validationwtforms rest apijson to wtformsapi request validationform validation from json
rest-apiform-validationabandoned

More Python Modules packages