Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A REST API framework for building CRUD APIs using Flask and peewee (forked from sanic_crud

Project description

PyPI PyPI version

flask-peewee-crud forked from sanic_crud

flask-peewee-crud is a REST API framework for creating a CRUD (Create/Retrieve/Update/Delete) API using Flask and PeeWee You can use flask-peewee-crud to automatically create an API from your PeeWee models, see how it works in the Documentation

Contributions to the repository are welcome!


from peewee import CharField, DateTimeField, SqliteDatabase, Model
import datetime
from flask import Flask
from flask_peewee_crud import generate_crud

db = SqliteDatabase('my_app.db')

class BaseModel(Model):
    class Meta:
        database = db

class Person(BaseModel):
    name = CharField()
    email = CharField()
    create_datetime = DateTimeField(, null=True)


app = Flask(__name__)
generate_crud(app, [Person])"", port=8000, debug=True)


python -m pip install flask-peewee-crud


Documentation can be found in the docs directory.


Project details

Release history Release notifications

Download files

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

Files for flask-peewee-crud, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size flask-peewee-crud-0.3.0.tar.gz (12.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page