Skip to main content

flask-peewee

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": "",
    "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

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/

Metadata

Release files for flask-peewee 4.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-peewee 4.0.2
File Size Uploaded Provenance Actions
flask_peewee-4.0.2.tar.gz 2.7 MB Without provenance Details for flask_peewee-4.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flask-peewee 4.0.2
File Interpreter ABI Platform Actions
flask_peewee-4.0.2-py3-none-any.whl Python 3 none any Details for flask_peewee-4.0.2-py3-none-any.whl

Total release size: 4.8 MB

Release files / flask_peewee-4.0.2.tar.gz

Download URL flask_peewee-4.0.2.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
46fa17fd72dba458c5aab4762a5ecddb66fe109be9694ec1a3d1a52818d6bbaa
BLAKE2b-256 checksum
How to use checksums
1ee060dac61f3ce42cdfce95c5c021f243271ee3269ab86ce834f9565d7a0e13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / flask_peewee-4.0.2-py3-none-any.whl

Download URL flask_peewee-4.0.2-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d3ed068dd459039c14cf80e9460dd0faae791c32345dbb769f592a5d88f4f81e
BLAKE2b-256 checksum
How to use checksums
91163d7f4df65ad2c037b25e19aba73c9750dc9ce8a4235d9296009bd88ba9e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for flask-peewee 4.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page