A set of generic class-based views for flask
Project description
Flask-Generic-Views is a set of generic class-based views for the Flask microframework inspired by the ones in Django.
from flask import Flask
from flask.ext.generic_views import TemplateView
app = Flask(__name__)
index_view = TemplateView.as_view('index', template_file='index.html')
app.add_url_rule('/', index_view)
if __name__ == '__main__':
app.run()
Database Support
Currently Flask-Generic-Views supports use of Models created with SQLAlchemy.
Installation
To install the basic views:
$ pip install flask-generic-views
To install optional SQLAlchemy support:
$ pip install flask-generic-views[sqlalchemy]
To install all optional packages:
$ pip install flask-generic-views[all]
Links
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-Generic-Views-0.1.1.tar.gz
(12.4 kB
view details)
Built Distribution
File details
Details for the file Flask-Generic-Views-0.1.1.tar.gz
.
File metadata
- Download URL: Flask-Generic-Views-0.1.1.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e94c9a593f4e02afa13eb9c17dbb28f5380bb8158723b6a2ae278477447411c |
|
MD5 | 64e44a20c94f508a4383882879476613 |
|
BLAKE2b-256 | 1f7a173d772672738e9dee4722c63c3cd4e48957e7362030d0c42afd82ae6d07 |
File details
Details for the file Flask_Generic_Views-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: Flask_Generic_Views-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a44d3c6d16e95d4d295d1f1525c14de5778f789c3d0522b60f286daba570eb46 |
|
MD5 | a750e548010dc8575b41317b9e01cfce |
|
BLAKE2b-256 | a270e96a7d9dcb9b89aae6a522885f0e0749071001cd49960bd72512407a8395 |