All Projects → pyx → flask-diced

pyx / flask-diced

Licence: other
Flask-Diced - CRUD views generator for Flask

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to flask-diced

mvc-flask
You can use the mvc pattern in your flask application using this extension.
Stars: ✭ 26 (+73.33%)
Mutual labels:  flask-extensions
Flask Apidoc
Adds ApiDoc support to Flask
Stars: ✭ 49 (+226.67%)
Mutual labels:  flask-extensions
Flask Jsonrpc
A basic JSON-RPC implementation for your Flask-powered sites
Stars: ✭ 223 (+1386.67%)
Mutual labels:  flask-extensions
Potion
Flask-Potion is a RESTful API framework for Flask and SQLAlchemy, Peewee or MongoEngine
Stars: ✭ 484 (+3126.67%)
Mutual labels:  flask-extensions
Flask Apscheduler
Adds APScheduler support to Flask
Stars: ✭ 741 (+4840%)
Mutual labels:  flask-extensions
Flask Mobility
A Flask extension to simplify building mobile-friendly sites.
Stars: ✭ 68 (+353.33%)
Mutual labels:  flask-extensions
flask-simplemde
Flask-SimpleMDE - a Flask extension for SimpleMDE
Stars: ✭ 23 (+53.33%)
Mutual labels:  flask-extensions
Flask-CSV
Easily render CSVs within any flask application
Stars: ✭ 20 (+33.33%)
Mutual labels:  flask-extensions
Flask Json
Flask-JSON is a Flask extension providing better JSON support.
Stars: ✭ 34 (+126.67%)
Mutual labels:  flask-extensions
Flask Ask
Alexa Skills Kit for Python
Stars: ✭ 1,877 (+12413.33%)
Mutual labels:  flask-extensions
Flask Googlemaps
Easy way to add GoogleMaps to Flask applications. maintainer: @RiverFount
Stars: ✭ 550 (+3566.67%)
Mutual labels:  flask-extensions
Flask Cors
Cross Origin Resource Sharing ( CORS ) support for Flask
Stars: ✭ 696 (+4540%)
Mutual labels:  flask-extensions
Flask And Redis
Simple as dead support of Redis database for Flask applications
Stars: ✭ 76 (+406.67%)
Mutual labels:  flask-extensions
Connexion
Swagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 support
Stars: ✭ 3,869 (+25693.33%)
Mutual labels:  flask-extensions
Flask Excel
A flask extension using pyexcel to read, manipulate and write data in different excel formats: csv, ods, xls, xlsx and xlsm.
Stars: ✭ 227 (+1413.33%)
Mutual labels:  flask-extensions
flask-graphite
📈 Push useful metrics for each request without effort!
Stars: ✭ 15 (+0%)
Mutual labels:  flask-extensions
Flask Htmlmin
Flask html response minifier
Stars: ✭ 66 (+340%)
Mutual labels:  flask-extensions
flask url discovery
Flask extension for discovering urls in a service. Automatically expose urls for a service. Manage urls exposure settings.
Stars: ✭ 13 (-13.33%)
Mutual labels:  flask-extensions
Flasgger
Easy OpenAPI specs and Swagger UI for your Flask API
Stars: ✭ 2,825 (+18733.33%)
Mutual labels:  flask-extensions
Flask simplelogin
Simple Login - Login Extension for Flask - maintainer @cuducos
Stars: ✭ 133 (+786.67%)
Mutual labels:  flask-extensions

Flask-Diced - CRUD views generator for Flask

Flask-Diced is a set of helper classes for Flask that generates CRUD views and registers them to blueprint/application.

Flask-Diced provides:

  • Detail view
  • Index view
  • Create view
  • Edit view
  • Delete view

Flask-Diced Might Not Be What You Want

Flask-Diced is opinionated, it assumes:

  • the model object has a save method for data persistence and delete method to remove itself.
  • the model can be created with no required arguments.
  • the form used for creation and editing are in the style of Flask-WTF's, specifically, Flask-Diced expects the form accepts a named parameter obj to pass in the initial value for editing as well as validate_on_submit method and populate_obj method on the form class. In short, just use Flask-WTF.
  • the client should be redirected when done for POST requests.
  • views should have minimal business logic.

Flask-Diced is Extensible

Flask-Diced is designed in a way that customizations can be easily done. All properties and methods can be overridden for customization.

Flask-Diced can be customized to the point that the assumptions described in last section are refer to the default implementation and will no longer hold true if you customize relevant parts of it.

e.g.,

Want to change how the objects list is fetched?

Override query_all

Want to change the name of endpoint of the edit view?

Redefine edit_endpoint

Want to use your own view function or control how views are registered?

Override respective view/register methods.

Installation

Flask-Diced is on PyPI.

pip install Flask-Diced

License

BSD New, see LICENSE for details.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].