Skip to content

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

License

Notifications You must be signed in to change notification settings

propelinc/flask-peewee

 
 

Repository files navigation

flask-peewee

https://github.com/propelinc/flask-peewee/actions/workflows/tests.yaml/badge.svg?branch=main

This fork is different in the following ways:

  • Strips out the admin and auth components.
  • Change the REST API in backward incompatible ways.
  • Adds StatsResource which is useful for aggregations.
  • Changes how date serialization works.
  • Adds support for JSON and JSONB fields when using a postgres backend.

requirements:

Check out the original documentation.

rest api

influenced by tastypie, provides a way to expose 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": "2011-09-16 18:34:49",
      "active": true,
      "id": 1
    },
    {
      "username": "coleifer",
      "admin": false,
      "email": "coleifer@gmail.com",
      "join_date": "2011-09-16 18:35:56",
      "active": true,
      "id": 2
    }
  ]
}

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 64.4%
  • HTML 17.2%
  • CSS 12.1%
  • JavaScript 6.3%