WTForms-JSON
Adds smart json support for WTForms. Useful for when using WTForms with RESTful APIs.
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-jsonuv
uv add wtforms-jsonpoetry
poetry add wtforms-jsonInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
WTForms-ComponentsExtends WTForms with additional field types,…
permissive · top 15,000 on PyPI
WTFormsWTForms provides form validation, rendering,…
permissive · top 5,000 on PyPI
Flask-WTFFlask-WTF integrates WTForms with Flask to…
permissive · top 5,000 on PyPI
types-WTFormsProvides type stubs for WTForms, enabling type…
permissive · top 15,000 on PyPI
WTForms-AlchemyAutomatically generates WTForms form classes…
permissive · top 15,000 on PyPI
WTForms-SQLAlchemyGenerates WTForms forms from SQLAlchemy models…
permissive · top 15,000 on PyPI
flask-marshmallowFlask-Marshmallow integrates Flask and…
permissive · top 5,000 on PyPI
Bootstrap-FlaskBootstrap-Flask provides Jinja macros that…
permissive · top 15,000 on PyPI
quart-schemaQuart-Schema adds schema validation and…
permissive · top 15,000 on PyPI
flask-mongoengineFlask-MongoEngine integrates MongoEngine…
permissive · top 15,000 on PyPI