Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

A set of generic class-based views for the Flask microframework inspired by the ones in Django.

License

Notifications You must be signed in to change notification settings

artisanofcode-archive/python-flask-generic-views

Repository files navigation

Flask-Generic-Views

An extension to Flask that provides a set of generic class based views. It aims to simplify applications by providing a set of well tested base classes and pluggable views for common tasks.

For more information check the Documentation.

Example

from flask import Flask
from flask_generic_views import TemplateView, RedirectView

app = Flask(__name__)

index = RedirectView('index', url='/home')

app.add_url_rule('/', view_func=index)

home = TemplateView('home', template_name='home.html')

app.add_url_rule('/home', view_func=home)

if __name__ == '__main__':
    app.run()

Install

To install Flask-Generic-Views via pip:

pip install flask-generic-views

Source

To install from source:

git clone git://github.com/artisanofcode/flask-generic-views.git
cd flask-generic-views
python setup.py develop

History

See CHANGES

Licence

This project is licensed under the MIT licence.

Meta

This project uses Semantic Versioning.

About

A set of generic class-based views for the Flask microframework inspired by the ones in Django.

Resources

License

Stars

Watchers

Forks

Packages

No packages published