from config import Config from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker import docker config = Config() config.init_app() docker_client = docker.from_env() engine = create_engine(config.SQLALCHEMY_DATABASE_URI) Session = scoped_session(sessionmaker(bind=engine))