Skip to content

DBT Runtime

The DBT runtime lets you run dbt transformations against your data. It wraps the DBT CLI and exposes a Function of kind dbt and a Task action for transformations.

Prerequisites

Supported Python versions:

  • Python ≥ 3.9, < 3.13

Required packages:

  • digitalhub-runtime-dbt

Install from PyPI:

pip install digitalhub-runtime-dbt

For local execution:

pip install digitalhub-runtime-dbt[local]

Usage overview

To execute dbt transformations on the platform:

  1. Implement your dbt project/code.
  2. Create a Function resource that references your dbt code and declares inputs/outputs.
  3. Call function.run() to execute the transformation.

See how to for detailed instructions on executing dbt transformations. See Examples for code samples.