Metadata-Version: 2.1
Name: dbt-cloud-api-client
Version: 0.0.1
Summary: DBT Cloud API client
Home-page: https://github.com/triedandtested-dev/dbt_cloud_api_client
Author: Tried and Tested
Author-email: bryan@triedandtested.dev
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/triedandtested-dev/dbt_cloud_api_client/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# dbt cloud api client
dbt cloud api client


## Install tox
```
pip install tox
```


Usage:
```python
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))
```


