Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    flask-peewee 0.6.1

    Download button

    Downloads: 207  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Charles Leifer | More programs
    BSD License / FREE
    August 23rd, 2012, 14:23 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    flask-peewee description

    Peewee integration for Flask

    flask-peewee provides a layer of integration between the Flask web framework and the Peewee ORM.

    Batteries included:

    - admin interface
    - authentication
    - rest api

    Rest API

    Influenced 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: "coleifer@gmail.com"
     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. 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

      


    TAGS:

    Peewee integration | Flask extension | Peewee | Flask | integration

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM