WTForms
توضیحات
Form validation and rendering for Python web development.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | WTForms-3.3.2 |
| نام | WTForms |
| نسخه کتابخانه | 3.3.2 |
| نگهدارنده | ['WTForms'] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/WTForms/ |
| مجوز | Copyright 2008 WTForms Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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.
- `WTForms-htmx`_ Interactive WTForms forms with no hand-written
JavaScript, powered by htmx and dark magic.
.. _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
.. _WTForms-htmx: https://github.com/yaal-coop/wtforms-htmx
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/
نیازمندی
| مقدار | نام |
|---|---|
| - | markupsafe>=1.1.1 |
| xtr | email-validator>=2.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.11 | Python |
نحوه نصب
نصب پکیج whl WTForms-3.3.2:
pip install WTForms.whl
نصب پکیج tar.gz WTForms-3.3.2:
pip install WTForms.tar.gz