Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

flask-peewee

> 编程语言
Open source

flask integration for peewee, including admin, authentication, rest api and more

782 stars0 likes0 views
WebsiteGitHub

About

flask integration for peewee, including admin, authentication, rest api and more

flask-peewee

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

batteries included:

  • admin interface
  • authentication
  • rest api

requirements:

  • flask _
  • peewee _
  • wtforms _
  • wtf-peewee _
  • 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.

.. 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

rest api

provides a RESTful interface for your project's models.

::

bash
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
    }
  ]
}

installing

::

bash
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::

bash
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/

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonflaskpeeweepythonweb-framework

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言