from clickhouse_sqlalchemy import make_session, get_declarative_base, engines from sqlalchemy import create_engine from settings import settings engine_clickhouse = create_engine(settings.clickhouse_url) BaseClickhouse = get_declarative_base() session_clickhouse = make_session(engine_clickhouse)