# pallets-eco/wtforms

A flexible forms validation and rendering library for Python.

Repository: https://github.com/pallets-eco/wtforms
Canonical: https://ross.abutalabs.com/products/wtforms
Homepage: https://wtforms.readthedocs.io
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: wtforms, python, html, validation, forms
Last push: 2026-06-29T08:33:53+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 50, longevity 100
- inputs: {"age_days": 4740, "days_push": 65, "days_rel": 122, "gap_med": 279.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1579, forks 407 (observed 2026-08-28T04:05:06.804550+00:00)

## What it is
WTForms is a flexible Python library for defining, validating, and rendering HTML web forms. It is framework-agnostic, supporting data validation, CSRF protection, and internationalization with integrations for Flask, Starlette, SQLAlchemy, and more.

## Use cases
- validate html form input in python
- render html forms from python classes
- add csrf protection to web forms
- generate forms from sqlalchemy models
- build multilingual web forms with i18n
- handle form submission in flask

## When to choose
- you need framework-agnostic form validation and rendering in Python
- you want CSRF protection and i18n built into form handling
- you use Flask, Starlette, or FastAPI and need form integration

## When to avoid
- you build a JavaScript SPA that only needs a JSON API with no server-rendered forms
- you want fully automatic form generation from models without writing field definitions

## Facets
- artifact type: library
- maturity: stable
- function: form-handling, templating, internationalization, security
- domain: web-development, backend
- platform: python
- tags: html-forms, csrf-protection, flask, field-validators, form-rendering, forms, web-server

## Member repositories
- pallets-eco/wtforms (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:06.804550+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:56:44.980082+00:00, confidence not recorded.
  - readme: https://github.com/pallets-eco/wtforms (fetched 2026-08-28T04:05:06.804550+00:00, sha 78e4b866618c)
  - registry_pypi: https://pypi.org/pypi/wtforms/json (fetched 2026-08-29T11:27:42.527554+00:00, sha 9b078830f6ff)
- Data as of 2026-08-30T08:39:29.467469+00:00.
