Wtforms
A flexible forms validation and rendering library for Python.
Install / Use
/learn @pallets-eco/WtformsREADME
WTForms
WTForms is a flexible forms validation and rendering library for Python web development. It can work with whatever web framework and template engine you choose. It supports data validation, CSRF protection, internationalization (I18N), and more. There are various community libraries that provide closer integration with popular frameworks.
Installation
Install and update using pip:
.. code-block:: text
pip install -U WTForms
Third-Party Library Integrations
WTForms is designed to work with any web framework and template engine. There are a number of community-provided libraries that make integrating with frameworks even better.
Flask-WTF_ integrates with the Flask framework. It can automatically load data from the request, uses Flask-Babel to translate based on user-selected locale, provides full-application CSRF, and more.WTForms-Alchemy_ provides rich support for generating forms from SQLAlchemy models, including an expanded set of fields and validators.WTForms-SQLAlchemy_ provides ORM-backed fields and form generation from SQLAlchemy models.WTForms-Bootstrap5_ provides Bootstrap 5 favor renderer with great customizability.Starlette-WTF_ integrates with Starlette and the FastAPI framework, based on the features of Flask-WTF.Bootstrap-Flask_ Bootstrap-Flask is a collection of Jinja macros for Bootstrap 4 & 5 and Flask using Flask-WTF.
.. _Flask-WTF: https://flask-wtf.readthedocs.io/ .. _WTForms-Alchemy: https://wtforms-alchemy.readthedocs.io/ .. _WTForms-SQLAlchemy: https://github.com/pallets-eco/wtforms-sqlalchemy .. _WTForms-Bootstrap5: https://github.com/LaunchPlatform/wtforms-bootstrap5 .. _Starlette-WTF: https://github.com/muicss/starlette-wtf .. _Bootstrap-Flask: https://github.com/helloflask/bootstrap-flask
Links
- Documentation: https://wtforms.readthedocs.io/
- Releases: https://pypi.org/project/WTForms/
- Code: https://github.com/pallets-eco/wtforms
- Issue tracker: https://github.com/pallets-eco/wtforms/issues
- Discord Chat: https://discord.gg/F65P7Z9
- Translation: https://hosted.weblate.org/projects/wtforms/wtforms/
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
107.8kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
347.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
