Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/l/o/logy-0.1/logy/views/sink.py   logy(Download)
 
# sink for logging records
sink = Module(__name__)
 
@sink.route('/<api_key>/<app_name>', methods=['POST'])

src/l/o/logy-0.1/logy/core.py   logy(Download)
 
# init database
from logy.models import database, tables
 
# clean database after request

src/l/o/logy-0.1/logy/models/tables.py   logy(Download)
from sqlalchemy import Column, ForeignKey, Integer, Unicode, String, DateTime, \
    Float
from sqlalchemy.orm import relationship
 
from logy.models import database

src/l/o/logy-0.1/logy/scripts.py   logy(Download)
def initdb():
    import logy.core
    from logy.models import database
    database.init_db()
    print 'Done.'