Flask extension for working with WTForms
Project description
Flask-Formist
Flask extension for working with WTForms.
It can be used as an alternative for Flask-WTF.
It provides BaseForm for working with CSRF tokens (the Flask app config should have CSRF_SECRET_KEY
and CSRF_TIME_LIMIT
keys).
There is also a handle_form function for dealing with forms: you provide form class, template to be rendered, on_success function to be called when the form is valid, cancel url and object to be edited.
Installation
$ pip install Flask-Formist
Usage
First create the wtf
object:
from flask_formist import Formist
wtf = Formist()
Then initialize it using init_app method:
wtf.init_app(app) # app is your Flask app instance
License
Flask-Formist
was created by Rafal Padkowski. It is licensed under the terms
of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask_formist-0.1.0.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for flask_formist-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fba45a1f7ea25644ae181be0e3b2abdf02310ae530ec15138f826da405451858 |
|
MD5 | 606a8e5d169e0f23c59887055daaf07e |
|
BLAKE2b-256 | 487e80cd56eb6d702c7081beb69dab090d7f938bbc23c95fe3742b6769149cbd |