Skip to main content

provides a layer of integration between the flask web framework and the peewee orm.

batteries included:

  • admin interface

  • authentication

  • rest api

requirements:

check out the documentation.

admin interface

influenced heavily by the django admin, provides easy create/edit/delete functionality for your project’s models.

https://media.charlesleifer.com/blog/photos/im-1783454777-579.png

or you can use one of the themes. Here is the crux theme:

https://media.charlesleifer.com/blog/photos/fp-crux-full.png

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": "coleifer@gmail.com",
      "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:

http://127.0.0.1:5000/admin/

you can check out the REST api at the following url:

http://127.0.0.1:5000/api/message/

Download files

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

Source Distribution

flask_peewee-4.0.0.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_peewee-4.0.0-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file flask_peewee-4.0.0.tar.gz.

File metadata

  • Download URL: flask_peewee-4.0.0.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flask_peewee-4.0.0.tar.gz
Algorithm Hash digest
SHA256 aca4a7309b337fa8ae201e4bc47be1578abf16dd726ba99b2e8ad3c9d86d7cee
MD5 ea7bd304ab63efa87af5da3741129710
BLAKE2b-256 cc52077b7565200fa9030d1da5aaf4b7fafcf4e62999f28b16dbb4abdd712db1

See more details on using hashes here.

File details

Details for the file flask_peewee-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: flask_peewee-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flask_peewee-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34d5bebc1df04ab18b4d8698af94194f6b27a5dc7fe24237a5517c18c2e07263
MD5 b4e56eb3a85f51af90653de9de0830c3
BLAKE2b-256 1ee4e039f7b5e580f4a38d50bd10adeea4a14d92b534878f320c0c50e277eb64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page