$npx skillfedfor your agent

WTForms

Form validation and rendering for Python web development.

Worth itPyPI Dynamic ContentReleased May 202619.4M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — wtforms-3.2.2-py3-none-any.whl
v3.2.2 · released 2026-05-03 · Python >=3.10 · 1 runtime deps: markupsafe

Yes. WTForms is a mature, actively maintained library (since 2009, latest release May 2026) with no security vulnerabilities, low install friction, and permissive licensing. It is widely used (top 5000 on PyPI) and solves a real problem—form validation and rendering—in a framework-agnostic way. Install it if you need form handling in any Python web project.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction install with a single runtime dependency (markupsafe).
  • The project is actively maintained with recent releases, a healthy repository (1580 stars), and no known security vulnerabilities.

License · maintenance · safety

permissive license (permissive) — BSD License (permissive). You can use, modify, and distribute WTForms freely in commercial and private projects, provided you retain the copyright notice and disclaimer.

last release 2026-05-03 (103 days) · last repo commit 2026-06-29 · 1,580 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 19,408,722 downloads/mo, #1,064 on PyPI

Verify before relying

pip install WTForms

from wtforms import Form, StringField, validators

class MyForm(Form):
    name = StringField('Name', [validators.Length(min=1)])

form = MyForm()
  • Whether the package supports async form handling or is synchronous-only.
  • Performance characteristics when handling forms with hundreds of fields.
Same gist for agents: .md · .json

What it is and what it does

WTForms is a standalone form library for Python web development that handles validation, rendering, and security concerns like CSRF protection without tying you to a specific framework. It provides a declarative API for defining form fields and validators, then validates incoming data and renders HTML. The library supports internationalization and works with any template engine, making it suitable for Flask, Django, FastAPI, and other frameworks through community integration packages.

The core dependency is minimal—just markupsafe for safe HTML rendering—and the library is framework-agnostic by design. You define forms as classes with field declarations, apply validators to each field, and then instantiate and validate them with request data. Community packages like Flask-WTF and Starlette-WTF provide tighter framework integration, but WTForms itself remains portable and lightweight.

Use it for

  • Build and validate user registration or login forms with built-in field types and validators.
  • Render HTML forms from Python code with automatic CSRF token injection for security.
  • Validate form submissions server-side before processing or storing user input.
  • Create multi-language forms using WTForms' internationalization support.
  • Generate forms from database models using community packages like WTForms-SQLAlchemy.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

WTForms is a mature, actively maintained library (since 2009, latest release May 2026) with no security vulnerabilities, low install friction, and permissive licensing. It is widely used (top 5000 on PyPI) and solves a real problem—form validation and rendering—in a framework-agnostic way. Install it if you need form handling in any Python web project.

Install

wtforms on PyPI

Before you install

Low friction install with a single runtime dependency (markupsafe). The project is actively maintained with recent releases, a healthy repository (1580 stars), and no known security vulnerabilities.

Requires Python 3.10 or later.

License in practice

BSD License (permissive). You can use, modify, and distribute WTForms freely in commercial and private projects, provided you retain the copyright notice and disclaimer.

Quickstart

pip install WTForms

from wtforms import Form, StringField, validators

class MyForm(Form):
    name = StringField('Name', [validators.Length(min=1)])

form = MyForm()

Verify before relying

  • Whether the package supports async form handling or is synchronous-only.
  • Performance characteristics when handling forms with hundreds of fields.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
markupsafe
MaintenanceActively maintained 103 days since the last release
Last repo commit
First released
Downloads19,408,722 / month, #1,064 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Internet :: WWW/HTTP :: Dynamic Content

Evidence: wtforms-3.2.2-py3-none-any.whl

Tags

Capabilities
form validation python webcsrf protection formshtml form renderingdata validation libraryweb form handlingform field validatorsinternationalized forms
Topics
form-validationcsrf-protectionweb-framework-agnostic

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “form validation python web”

  • WTFormsWTForms provides form validation, rendering, and CSRF protection for…
  • WTForms-ComponentsExtends WTForms with additional field types, validators, and widgets…
  • Flask-WTFFlask-WTF integrates WTForms with Flask to handle form rendering,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Dynamic Content packages

MarkupSafe Worth it
PyPI · Dynamic Content · released Sep 2025

MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.

BSD-3-Clausecompiled wheel · 3.9+aging
797.1Mdownloads / mo
Jinja2 Worth it
PyPI · Dynamic Content · released Mar 2025

Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.

BSD-3-Clausepure Python · 3.7+aging
718.6Mdownloads / mo
soupsieve Worth it
PyPI · Python Modules · released Aug 2026

Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.

Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.

MITpure Python · 3.10+
428.6Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo
Flask Worth it
PyPI · Application Frameworks · released Feb 2026

Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.

BSD-3-Clausepure Python · 3.9+
211.4Mdownloads / mo
Mako Worth it
PyPI · Dynamic Content · released Aug 2026

Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.

MITpure Python · 3.10+
201.7Mdownloads / mo

See also Flask-WTF · WTForms-Alchemy · Bootstrap-Flask · WTForms-Components · WTForms-SQLAlchemy · WTForms-JSON · types-WTForms · asgi-csrf · flask-babel · fastapi-csrf-protect