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

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

src/p/y/pyrone-1.1.2/pyrone/__init__.py   pyrone(Download)
from sqlalchemy import engine_from_config
 
from pyrone.models import initialize_sql
from pyrone.lib.auth import PyroneSessionAuthenticationPolicy, get_user
from pyrone.models.file import init_storage_from_settings
def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    engine = engine_from_config(settings, 'sqlalchemy.')
    initialize_sql(engine)

src/p/y/pyrone-1.1.2/pyrone/tests.py   pyrone(Download)
def _initTestingDB():
    from sqlalchemy import create_engine
    from pyrone.models import initialize_sql
    session = initialize_sql(create_engine('sqlite://'))
    return session