flask integration for peewee, including admin, authentication, rest api and more
flask integration for peewee, including admin, authentication, rest api and more
provides a layer of integration between the flask _
web framework and the peewee orm _.
batteries included:
requirements:
flask _peewee _wtforms _wtf-peewee _check out the documentation _.
influenced heavily by the django _ admin, provides easy
create/edit/delete functionality for your project's models.
.. image:: https://media.charlesleifer.com/blog/photos/im-1783454777-579.png
or you can use one of the themes. Here is the crux theme:
.. image:: https://media.charlesleifer.com/blog/photos/fp-crux-full.png
provides a RESTful interface for your project's models.
::
curl localhost:5000/api/user/
{
"meta": {
"model": "user",
"next": "",
"object_count": 2,
"page": 1,
"page_count": 1,
"previous": ""
},
"objects": [
{
"username": "admin",
"admin": true,
"join_date": "2025-09-16T18:34:49",
"active": true,
"id": 1
},
{
"username": "coleifer",
"admin": false,
"join_date": "2025-09-16T18:35:56",
"active": true,
"id": 2
}
]
}::
pip install flask-peeweethe 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 run_example.py script::
cd example/
python run_example.pyif 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:
No open issues yet, or sync has not completed.