from alembic.operations import Operations from alembic.environment import EnvironmentContext op = Operations() context = EnvironmentContext()