/
README (full)
flask-peewee
provides a layer of integration between the flask web framework and the peewee orm.
batteries included:
admin interface
authentication
rest api
requirements:
python 3.8 or greater
check out the documentation.
admin interface
influenced heavily by the django admin, provides easy create/edit/delete functionality for your project's models.
or you can use one of the themes. Here is the crux theme:
rest api
provides 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": "2025-09-16 18:34:49",
"active": true,
"id": 1
},
{
"username": "coleifer",
"admin": false,
"email": "[email protected]",
"join_date": "2025-09-16 18:35:56",
"active": true,
"id": 2
}
]
}
installing
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 run_example.py script::
cd example/ python run_example.py
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:
| dir | .github/ |
| dir | debian/ |
| dir | docs/ |
| dir | example/ |
| dir | flask_peewee/ |
| file | .readthedocs.yaml |
| file | LICENSE |
| file | MANIFEST.in |
| file | README.rst |
| file | pyproject.toml |
| file | runtests.py |
| file | setup.py |