<s> from sqlalchemy import create_engine <EOL> from sqlalchemy . orm import scoped_session , sessionmaker <EOL> from sqlalchemy . ext . declarative import declarative_base <EOL> engine = create_engine ( '<STR_LIT>' , convert_unicode = True ) <EOL> db_session = scoped_session ( sessionmaker ( autocommit = False , <EOL> autoflush = False , <EOL> bind = engine ) ) <EOL> Base = declarative_base ( ) <EOL> Base . query = db_session . query_property ( ) <EOL> def init_db ( ) : <EOL> import models <EOL> Base . metadata . create_all ( bind = engine ) </s>
