https://github.com/pallets-eco/wtforms-sqlalchemy
WTForms integration for SQLAlchemy
https://github.com/pallets-eco/wtforms-sqlalchemy
python sqlalchemy wtforms
Last synced: 6 days ago
JSON representation
WTForms integration for SQLAlchemy
- Host: GitHub
- URL: https://github.com/pallets-eco/wtforms-sqlalchemy
- Owner: pallets-eco
- License: other
- Created: 2014-02-27T08:09:17.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2025-01-02T15:02:35.000Z (3 months ago)
- Last Synced: 2025-03-30T09:01:54.463Z (15 days ago)
- Topics: python, sqlalchemy, wtforms
- Language: Python
- Homepage:
- Size: 140 KB
- Stars: 103
- Watchers: 14
- Forks: 45
- Open Issues: 11
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.txt
Awesome Lists containing this project
- jimsghstars - pallets-eco/wtforms-sqlalchemy - WTForms integration for SQLAlchemy (Python)
README
WTForms-SQLAlchemy
==================.. image:: https://github.com/wtforms/wtforms-sqlalchemy/actions/workflows/tests.yaml/badge.svg
:target: https://github.com/wtforms/wtforms-sqlalchemy/actions/workflows/tests.yaml
.. image:: https://readthedocs.org/projects/wtforms-sqlalchemy/badge/?version=latest&style=flat
:target: https://wtforms-sqlalchemy.readthedocs.ioWTForms-SQLAlchemy is a fork of the ``wtforms.ext.sqlalchemy`` package from WTForms.
The package has been renamed to ``wtforms_sqlalchemy`` but otherwise should
function the same as ``wtforms.ext.sqlalchemy`` did.to install::
pip install WTForms-SQLAlchemy
An example using Flask is included in ``examples/flask``.
Features
--------1. Provide ``SelectField`` integration with SQLAlchemy models
- ``wtforms_sqlalchemy.fields.QuerySelectField``
- ``wtforms_sqlalchemy.fields.QuerySelectMultipleField``2. Generate forms from SQLAlchemy models using
``wtforms_sqlalchemy.orm.model_form``Rationale
---------The reasoning for splitting out this package is that WTForms 2.0 has
deprecated all its ``wtforms.ext.`` packages and they will
not receive any further feature updates. The authors feel that packages
for companion libraries work better with their own release schedule and
the ability to diverge more from WTForms.