Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Flask-Diced - CRUD views generator for Flask

Project Description

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.


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.


Flask-Diced is on PyPI.

pip install Flask-Diced


BSD New, see LICENSE for details.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Flask-Diced-0.3.tar.gz (6.9 kB) Copy SHA256 Checksum SHA256 Source Apr 28, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting