All Projects → coleifer → Flask Peewee

coleifer / Flask Peewee

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

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Flask Peewee

Flask
The Python micro framework for building web applications.
Stars: ✭ 57,408 (+7668.34%)
Mutual labels:  flask, web-framework
Flask bestpractices
Flask最佳实践
Stars: ✭ 100 (-86.47%)
Mutual labels:  flask, web-framework
Rest Api Sections
A small repository of projects built in my course, REST APIs with Flask and Python.
Stars: ✭ 645 (-12.72%)
Mutual labels:  flask
Yacht
A web interface for managing docker containers with an emphasis on templating to provide 1 click deployments. Think of it like a decentralized app store for servers that anyone can make packages for.
Stars: ✭ 712 (-3.65%)
Mutual labels:  flask
Frozen Flask
Freezes a Flask application into a set of static files.
Stars: ✭ 680 (-7.98%)
Mutual labels:  flask
Emmett
The web framework for inventors
Stars: ✭ 647 (-12.45%)
Mutual labels:  web-framework
Actframework
An easy to use Java MVC server stack
Stars: ✭ 690 (-6.63%)
Mutual labels:  web-framework
Lin Cms Flask
🎀A simple and practical CMS implememted by flask
Stars: ✭ 642 (-13.13%)
Mutual labels:  flask
Sparrow
运维管理平台(python3+flask+pycharts+apscheduler+gunicorn),模块化结构设计,底层依托mysql、influxdb、elasticsearch、zabbix、k8s等数据源数据
Stars: ✭ 723 (-2.17%)
Mutual labels:  flask
Flaskex
Simple flask example for quick prototypes and small applications
Stars: ✭ 679 (-8.12%)
Mutual labels:  flask
Chartkick.py
Create beautiful Javascript charts with minimal code
Stars: ✭ 695 (-5.95%)
Mutual labels:  flask
Thruster
A fast, middleware based, web framework written in Rust
Stars: ✭ 671 (-9.2%)
Mutual labels:  web-framework
Python24
网上搜集的自学python语言的资料集合,包括整套代码和讲义集合,这是至今为止所开放网上能够查找到的最新视频教程,网上找不到其他最新的python整套视频了,. 具体的无加密的mp4视频教程和讲义集合可以在更新的Readme文件中找到,下载直接打开就能播放,项目从零基础的Python教程到深度学习,总共30章节,其中包含Python基础中的飞机大战项目,WSGI项目,Flask新经资讯项目, Django的电商项目(本应该的美多商城项目因为使用的是Vue技术,所以替换为Django天天生鲜项目)等等,希望能够帮助大家。资源搜集劳神费力,能帮到你的话是我的福分,望大家多多支持,喜欢本仓库的话,记得Star哦。
Stars: ✭ 650 (-12.04%)
Mutual labels:  flask
Justpy
An object oriented high-level Python Web Framework that requires no frontend programming
Stars: ✭ 689 (-6.77%)
Mutual labels:  web-framework
Aah
A secure, flexible, rapid Go web framework
Stars: ✭ 647 (-12.45%)
Mutual labels:  web-framework
Skinny Framework
🚝 "Scala on Rails" - A full-stack web app framework for rapid development in Scala
Stars: ✭ 719 (-2.71%)
Mutual labels:  web-framework
Blockchain
A simple Blockchain in Python
Stars: ✭ 6,496 (+779.03%)
Mutual labels:  flask
Takes
True Object-Oriented Java Web Framework
Stars: ✭ 670 (-9.34%)
Mutual labels:  web-framework
Gae Boilerplate
Google App Engine Boilerplate
Stars: ✭ 688 (-6.9%)
Mutual labels:  flask
Bowtie
Create a dashboard with python!
Stars: ✭ 724 (-2.03%)
Mutual labels:  flask

This package is in maintenance-only mode!

I'm sorry to announce that flask-peewee will now be in maintenance-only mode. This decision is motivated by a number of factors:

  • Flask-Admin <https://flask-admin.readthedocs.io/en/latest/>_ provides a superior admin interface and has support for peewee models.
  • Flask-Security <https://pythonhosted.org/Flask-Security/>_ and Flask-Login <https://flask-login.readthedocs.io/en/latest/>_ both provide authentication functionality, and work well with Peewee.
  • Most importantly, though, I do not find myself wanting to work on flask-peewee.

I plan on rewriting the Database and REST API portions of flask-peewee and repackaging them as a new library, but flask-peewee as it stands currently will be in maintenance-only mode.

flask-peewee

provides a layer of integration between the flask <http://flask.pocoo.org/>_ web framework and the peewee orm <https://peewee.readthedocs.io/>_.

batteries included:

  • admin interface
  • authentication
  • rest api

requirements:

  • flask <https://github.com/mitsuhiko/flask>_
  • peewee <https://github.com/coleifer/peewee>_
  • wtforms <https://github.com/wtforms/wtforms>_
  • wtf-peewee <https://github.com/coleifer/wtf-peewee>_
  • python 2.5 or greater

check out the documentation <https://flask-peewee.readthedocs.io/>_.

admin interface

influenced heavily by the django <http://djangoproject.com>_ admin, provides easy create/edit/delete functionality for your project's models.

.. image:: http://i.imgur.com/EtzdO.jpg

rest api

influenced by tastypie <https://github.com/toastdriven/django-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": "[email protected]",
      "join_date": "2011-09-16 18:35:56",
      "active": true,
      "id": 2
    }
  ]
}

installing

I recommend installing in a virtualenv. to get started::

# create a new virtualenv
virtualenv --no-site-packages project
cd project/
source bin/activate

# install this project (will install dependencies as well)
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/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].