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:
For local execution:
Usage overview
To execute dbt transformations on the platform:
- Implement your dbt project/code.
- Create a
Functionresource that references your dbt code and declares inputs/outputs. - Call
function.run()to execute the transformation.
See how to for detailed instructions on executing dbt transformations. See Examples for code samples.