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, 10, 7, 33), 'sqlalchemy.orm.scoped_session', 'scoped_session', ({(7, 25, 7, 32): 'Session'}, {}), '(Session)', False, 'from sqlalchemy.orm import scoped_session\n'), ((6, 63, 6, 84), 'sqlalchemy.create_engine', 'create_engine', ({(6, 77, 6, 83): 'DB_URI'}, {}), '(DB_URI)', False, 'from sqlalchemy import create_engine\n')]