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
File details
Details for the file dbt-cloud-api-client-0.0.1.tar.gz
.
File metadata
- Download URL: dbt-cloud-api-client-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f20a376ade12fc7b4b58111036eaaa452bc03e9176596d46048d4a2254b5b1 |
|
MD5 | cdd12f9ae2b1ca99f39e7dc0706217ce |
|
BLAKE2b-256 | 951f41df5075815b44a9d7e34452279e936cfbd40d8f2fc37edd0ca50d533baf |
File details
Details for the file dbt_cloud_api_client-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: dbt_cloud_api_client-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e2353c2772d9e3b460c7e5b9610310b5c564ef022d8233347f38c1b32bf92b1 |
|
MD5 | 7f8732a76cf7768ff418d1e442213440 |
|
BLAKE2b-256 | 18811a3a28ad0629d88a2d90737a8dad3cb406123d92e850a73b613f478eb9e4 |