Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
    

src/f/l/Flask-Presst-0.2.10/examples/quickstart_api_resource_method.py   Flask-Presst(Download)
import datetime
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from sqlalchemy.orm import backref
from flask.ext.presst import PresstApi, ModelResource, Relationship, fields, resource_method
 
 
api = PresstApi(app)
api.add_resource(BookResource)
api.add_resource(AuthorResource)

src/f/l/Flask-Presst-0.2.10/examples/quickstart_api_relationship.py   Flask-Presst(Download)
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from sqlalchemy.orm import backref
from flask.ext.presst import PresstApi, ModelResource, Relationship, fields
 
        model = Author
 
api = PresstApi(app)
api.add_resource(BookResource)
api.add_resource(AuthorResource)

src/f/l/Flask-Presst-0.2.10/examples/quickstart_api_simple.py   Flask-Presst(Download)
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.presst import PresstApi, ModelResource
 
app = Flask(__name__)
        model = Book
 
api = PresstApi(app)
api.add_resource(BookResource)