Skip to main content

SQLAlchemy tools for WTForms

Project description

https://travis-ci.org/wtforms/wtforms-sqlalchemy.svg?branch=master

WTForms-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

Python 3.6, 3.7 & 3.8 are supported.

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.<library> 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for WTForms-SQLAlchemy, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size WTForms_SQLAlchemy-0.2-py3-none-any.whl (8.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size WTForms-SQLAlchemy-0.2.tar.gz (17.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page