/airflow-provider-alembic

Run Alembic via Airflow

Primary LanguagePythonMIT LicenseMIT

Alembic Operators for Airflow

This project defines an operator for Alembic for Apache Airflow. The aim is to provide the ability to include Alembic functionality within an Apache DAG. The current implementation of Alembic operators includes:

  • AlembicBaseOperator - Provides DAG node for Airflow
  • AlembicUpgradeOperator - Wraps alembic.command.upgrade
  • AlembicDowngradeOperator - Wraps alembic.command.downgrade

Development

  • Install dev dependencies: pip install -r requirements-dev.txt
  • Run tests: make test or pytest tests
  • Prettify code (using Black): make pretty