# Using Python to get upstreaming and downstream models

**URL:** <https://discourse.getdbt.com/t/using-python-to-get-upstreaming-and-downstream-models/4112>\
**Category:** Archive\
**Created:** [March 31, 2022, 2:29am UTC](https://discourse.getdbt.com/t/using-python-to-get-upstreaming-and-downstream-models/4112 "2022-03-31T02:29:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harry123](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Harry123](https://discourse.getdbt.com/u/Harry123)\
**Post date:** [March 31, 2022, 2:29am UTC](https://discourse.getdbt.com/t/using-python-to-get-upstreaming-and-downstream-models/4112/1 "2022-03-31T02:29:02Z")

</div>

We are trying to use DBT in airflow.  
We create airflow DAGs with different models using incremental materialization.

ex. source → wallet → product  
There are two airflow DAGs  
We wan to know the wallet DAG whether it is finished before dbt run product.

How can I get those information to make cross-DAG dependencies or right execution order.
