from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
from settings import DB_URI

Session = sessionmaker(autocommit=False, autoflush=False, bind=create_engine(DB_URI))
session = scoped_session(Session)

[(7, 'sqlalchemy.orm.scoped_session', 'scoped_session', False, 'from sqlalchemy.orm import scoped_session\n'), (6, 'sqlalchemy.create_engine', 'create_engine', False, 'from sqlalchemy import create_engine\n')]