Provider package for integrating Apache Airflow with dbt Cloud for data transformation workflow orchestration
84
Create a Python client for the dbt Cloud API that automatically identifies itself with version-specific tracking headers for API usage analytics and debugging support.
@generates
class DbtCloudClient:
"""
A client for interacting with the dbt Cloud API with automatic version tracking.
Args:
api_token: The dbt Cloud API authentication token
tenant: Optional custom tenant URL (defaults to cloud.getdbt.com)
version: The version string for the client library
"""
def __init__(self, api_token: str, tenant: str = "cloud.getdbt.com", version: str = "1.0.0"):
pass
def get_account(self, account_id: int) -> dict:
"""
Retrieve information about a specific dbt Cloud account.
Args:
account_id: The dbt Cloud account ID
Returns:
A dictionary containing account information
"""
pass
def _make_request(self, method: str, endpoint: str) -> dict:
"""
Make an authenticated request to the dbt Cloud API with tracking headers.
Args:
method: HTTP method (GET, POST, etc.)
endpoint: API endpoint path
Returns:
JSON response as a dictionary
"""
passProvides HTTP client functionality for API requests.
@satisfied-by
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