skip to navigation
skip to content

Not Logged In

flask-peewee 0.6.6

Peewee integration for flask


provides a layer of integration between the `flask <http:""/>`_
web framework and the `peewee orm <http:""/>`_.

batteries included:

* admin interface
* authentication
* rest api


* `flask <https:"" mitsuhiko="" flask="">`_
* `peewee <https:"" coleifer="" peewee="">`_
* `wtforms <https:"" wtforms="" wtforms="">`_
* `wtf-peewee <https:"" coleifer="" wtf-peewee="">`_
* python 2.5 or greater

check out the `documentation <http:""/>`_.

admin interface

influenced heavily by the `django <http:"">`_ admin, provides easy
create/edit/delete functionality for your project's models.

.. image::

rest api

influenced by `tastypie <https:"" toastdriven="" django-tastypie="">`_, provides
a way to expose a RESTful interface for your project's models.


curl localhost:5000/api/user/
"meta": {
"model": "user",
"next": "",
"page": 1,
"previous": ""
"objects": [
"username": "admin",
"admin": true,
"email": "",
"join_date": "2011-09-16 18:34:49",
"active": true,
"id": 1
"username": "coleifer",
"admin": false,
"email": "",
"join_date": "2011-09-16 18:35:56",
"active": true,
"id": 2


I recommend installing in a virtualenv. to get started::

# create a new virtualenv
virtualenv --no-site-packages project
cd project/
source bin/activate

# install this project (will install dependencies as well)
pip install flask-peewee

example app

the project ships with an example app, which is a silly twitter clone. to
start the example app, ``cd`` into the "example" directory and execute
the ```` script::

cd example/

if you would like to test out the admin area, log in as "admin/admin" and navigate to:

you can check out the REST api at the following url:
File Type Py Version Uploaded on Size
flask-peewee-0.6.6.tar.gz (md5) Source 2014-09-04 690KB
  • Downloads (All Versions):
  • 35 downloads in the last day
  • 517 downloads in the last week
  • 2519 downloads in the last month