DBT Cloud API client
Project description
dbt cloud api client
dbt cloud api client
Install tox
pip install tox
Usage:
import time
from dbt_cloud_api_client.client import DbtCloudClient
...
client = DbtCloudClient(token='<token>')
account = client.get_account_by_name('<ACCOUNT_NAME>')
job = account.get_job_by_name('<JOB NAME IN DBT CLOUD>')
run = job.run('Job triggered from python.')
while not run.is_finished():
print('{} - {}'.format(run.id, run.status))
run.reload()
# print(run.data) # display all details of run.
# sleep for a period of time
time.sleep(60)
print('{} - {}'.format(run.id, run.status))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dbt-cloud-api-client-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f20a376ade12fc7b4b58111036eaaa452bc03e9176596d46048d4a2254b5b1 |
|
MD5 | cdd12f9ae2b1ca99f39e7dc0706217ce |
|
BLAKE2b-256 | 951f41df5075815b44a9d7e34452279e936cfbd40d8f2fc37edd0ca50d533baf |
Close
Hashes for dbt_cloud_api_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e2353c2772d9e3b460c7e5b9610310b5c564ef022d8233347f38c1b32bf92b1 |
|
MD5 | 7f8732a76cf7768ff418d1e442213440 |
|
BLAKE2b-256 | 18811a3a28ad0629d88a2d90737a8dad3cb406123d92e850a73b613f478eb9e4 |