Metadata-Version: 2.1
Name: pydbtcloud
Version: 0.0.3
Summary: Python SDK for dbt Cloud.
Home-page: https://github.com/dwallace0723/py-dbt-cloud
Author: David Wallace
Author-email: dwallace0723@gmail.com
License: MIT
Keywords: dbt
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.22.0)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.7](https://upload.wikimedia.org/wikipedia/commons/f/fc/Blue_Python_3.7_Shield_Badge.svg)](https://www.python.org/downloads/release/python-370/)

# py-dbt-cloud
pydbtcloud is a developer kit for interfacing with the [dbt Cloud v2 API](https://app.swaggerhub.com/apis-docs/Sinter/api_v2/2.0.0a1#/) on Python 3.7 and above.

# Installation

```bash
pip install pydbtcloud
```

# Authentication

```python
from pydbtcloud import DbtCloud
dbtcloud = DbtCloud(account_id='account_id', api_token='api_token')
```

# Example Usage

Get information about a specific dbt cloud job:

```python
response = dbtcloud.get_job(1234)
```

You can iterate through pages using the following syntax:

```python
for page in dbtcloud.list_runs():
  for run in page.get('data'):
    print(run.get('id'))
```


