mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 19:04:18 +00:00
12 lines
312 B
Python
12 lines
312 B
Python
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))
|