Provider package for integrating Apache Airflow with dbt Cloud for data transformation workflow orchestration
84
Build a connection validation utility for dbt Cloud that verifies API connectivity and retrieves basic account information.
Create a Python module that provides functionality to:
The utility should accept:
@generates
def create_connection(token: str, account_id: int = None, tenant: str = None):
"""
Create a connection to dbt Cloud API.
Args:
token: API authentication token
account_id: Optional account ID for multi-account scenarios
tenant: Optional custom tenant/host for private dbt Cloud instances
Returns:
A connection object that can be used for API interactions
"""
pass
def test_connection(connection) -> bool:
"""
Test if the connection to dbt Cloud API is valid.
Args:
connection: The connection object to test
Returns:
True if connection is valid, False otherwise
"""
pass
def get_accounts(connection) -> list:
"""
Retrieve list of accounts accessible with the current credentials.
Args:
connection: The connection object to use
Returns:
List of dictionaries containing account information (id, name, etc.)
"""
passProvides dbt Cloud API integration capabilities for Apache Airflow.
Install with Tessl CLI
npx tessl i tessl/pypi-apache-airflow-providers-dbt-cloudevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10