Skip to main content

Python SDK for dbt Cloud.

Project description

License: MIT Python 3.7

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


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)

Uploaded Source

Built Distribution

pydbtcloud-0.0.3-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page