Skip to main content

Collection of tasks to interact with dbt Cloud

Project description

prefect-dbtcloud

Welcome!

Collection of tasks to interact with dbt Cloud

Getting Started

Python setup

Requires an installation of Python 3.7+.

We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.

These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the Prefect documentation.

Installation

Install prefect-dbtcloud with pip:

pip install prefect-dbtcloud

Write and run a flow

from prefect import flow
from prefect_dbtcloud.tasks import (
    run_job
)


@flow
def trigger_dbt_cloud_job_run():
    run_job(
        cause="<the motivation to run the job>",
        account_id=<your dbt Cloud Account ID>,
        job_id=<the identifier of the job to run>,
        token="<your dbt Cloud API token>",
        wait_for_job_run_completion=False
    )

trigger_dbt_cloud_job_run()

Resources

If you encounter any bugs while using prefect-dbtcloud, feel free to open an issue in the prefect-dbtcloud repository.

If you have any questions or issues while using prefect-dbtcloud, you can find help in either the Prefect Discourse forum or the Prefect Slack community.

Development

If you'd like to install a version of prefect-dbtcloud for development, clone the repository and perform an editable install with pip:

git clone https://github.com/AlessandroLollo/prefect-dbtcloud.git

cd prefect-dbtcloud/

pip install -e ".[dev]"

# Install linting pre-commit hooks
pre-commit install

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

prefect-dbtcloud-0.1.1.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

prefect_dbtcloud-0.1.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file prefect-dbtcloud-0.1.1.tar.gz.

File metadata

  • Download URL: prefect-dbtcloud-0.1.1.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for prefect-dbtcloud-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5f2882eedde2d8c631ce4f2909232228d22a4eb6881fb4a8af598c6d0c35b7f5
MD5 b5f168a28965d20eea72018b0f66c690
BLAKE2b-256 63ba2bc83d7dddee7693dac48ca6857077c365995237e5059f40e74470bc6efc

See more details on using hashes here.

File details

Details for the file prefect_dbtcloud-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prefect_dbtcloud-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce3de3bb9e6aa3c5059c0be25cb2fe847c237807c49b2bf028a63a0fc332b104
MD5 817877d177d5d6a9c1528a54b7ba64fe
BLAKE2b-256 73ef1e3931a6b04d56af5f57c44c18777dcbdf7c5e22ab493c6abe4942ca7616

See more details on using hashes here.

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