Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wtforms/wtforms
A flexible forms validation and rendering library for Python.
https://github.com/wtforms/wtforms
forms html python validation wtforms
Last synced: about 1 month ago
JSON representation
A flexible forms validation and rendering library for Python.
- Host: GitHub
- URL: https://github.com/wtforms/wtforms
- Owner: wtforms
- License: bsd-3-clause
- Created: 2013-09-11T01:53:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-07T18:22:36.000Z (6 months ago)
- Last Synced: 2024-05-18T10:31:53.594Z (6 months ago)
- Topics: forms, html, python, validation, wtforms
- Language: Python
- Homepage: https://wtforms.readthedocs.io
- Size: 2.8 MB
- Stars: 1,470
- Watchers: 49
- Forks: 396
- Open Issues: 63
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Contributing: docs/contributing.rst
- License: LICENSE.rst
Awesome Lists containing this project
- awesome-python-resources - GitHub - 12% open · ⏱️ 17.07.2022): (表单)
- best-of-web-python - GitHub - 13% open · ⏱️ 04.05.2024): (Web Forms)
- awesome-pyramid - WTForms - is a flexible forms (Forms)
- jimsghstars - wtforms/wtforms - A flexible forms validation and rendering library for Python. (Python)
README
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-AppEngine`_ provides ORM-backed fields and form generation
from AppEnding db/ndb schema
- `WTForms-Django`_ provides ORM-backed fields and form generation
from Django models, as well as integration with Django's I18N
support.
- `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/wtforms/wtforms-sqlalchemy
.. _WTForms-AppEngine: https://github.com/wtforms/wtforms-appengine
.. _WTForms-Django: https://github.com/wtforms/wtforms-django
.. _WTForms-Bootstrap5: https://github.com/LaunchPlatform/wtforms-bootstrap5
.. _Starlette-WTF: https://github.com/muicss/starlette-wtf
.. _Bootstrap-Flask: https://github.com/helloflask/bootstrap-flaskLinks
------ Documentation: https://wtforms.readthedocs.io/
- Releases: https://pypi.org/project/WTForms/
- Code: https://github.com/wtforms/wtforms
- Issue tracker: https://github.com/wtforms/wtforms/issues
- Discord Chat: https://discord.gg/F65P7Z9
- Translation: https://hosted.weblate.org/projects/wtforms/wtforms/