8.7/10 (44 أصوات )




  • مرات التنزيل: 149
  • متطلبات التشغيل:
  • الحجم:
  • الترخيص:
  • الاصدار : flask-peewee
  • اضيف في: 0000-00-00 00:00:00
  • اخر تحديث: 21/05/2012
  • الموقع علي الانترنت:






Description




flask-peewee provides a layer of integration between the Flask web framework and the Peewee ORM.Batteries included:- admin interface- authentication- rest apiRest APIInfluenced by tastypie, provides a way to expose a RESTful interface for your project's models.GET /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 } ]}InstallingI recommend installing in a virtualenv. to get started:# create a new virtualenvvirtualenv --no-site-packages projectcd project/source bin/activate# install this project (will install dependencies as well)pip install flask-peeweeExample appthe project ships with an example app, which is a silly twitter clone. 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/Product's homepage Requirements:

· Python
· Flask
· peewee
· WTForms
· wtforms-peewee









التعليقات علي flask-peewee 0.5.3
اضافة تعليق

تعليقات الفيسبوك

تعليقات الموقع