Python SDK for dbt Cloud.
Project description
py-dbt-cloud
pydbtcloud is a developer kit for interfacing with the dbt Cloud v2 API on Python 3.7 and above.
Installation
pip install pydbtcloud
Authentication
from pydbtcloud import DbtCloud
dbtcloud = DbtCloud(account_id='account_id', api_token='api_token')
Example Usage
Get information about a specific dbt cloud job:
response = dbtcloud.get_job(1234)
You can iterate through pages using the following syntax:
for page in dbtcloud.list_runs():
for run in page.get('data'):
print(run.get('id'))
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
pydbtcloud-0.0.3.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for pydbtcloud-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4502716dc929b3f14722d22dd511ab5e67321d75e822a624413ebeeaee357e01 |
|
MD5 | d54bf5923c62dd10ca8d62bd277a1560 |
|
BLAKE2b-256 | 2be8d1cb1b74bd4b5ff0403ce618f03d8e5e85666a10bad4642e0ca0c81edd88 |