astronomer/astronomer-cosmos ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python library that lets me run dbt Core or dbt Fusion projects as Apache Airflow DAGs and task groups with just a few lines of code.
I want to point it at a dbt project and have it turn each model into Airflow tasks with retries and alerts, run tests right after each model finishes, and support scheduling models based on upstream data being ready. It should work with Airflow connections instead of dbt profiles, and it should be able to install and run dbt in a virtual environment so it does not clash with Airflow dependencies.
Please include a simple example DAG for a sample dbt project, plus enough docs so I can understand how to get started quickly. If there are any current dbt or Airflow docs you need to check, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit