A dbt adapter for running Python models without Dataproc or BigQuery DataFrames.
Project description
dbt-pal
dbt-pal is Python Adapter Layer
A dbt adapter for running Python models without Dataproc or BigQuery DataFrames.
- SQL models work the same as dbt-bigquery
- Python models are executed in the process running dbt, and the results are written to BigQuery
- The only supported data platform is BigQuery
Inspired by dbt-fal, but this is an unrelated project with no guaranteed compatibility.
Usage
Installation
pip install dbt-pal
Prerequisites
- Python >= 3.11
- dbt-core >= 1.11.0
- dbt-bigquery >= 1.11.0
- Authentication to BigQuery must be configured (e.g.
gcloud auth application-default login)
profiles.yml Configuration
Create a target with type: pal and specify the target name of the actual BigQuery target in db_profile field.
my_project:
target: pal
outputs:
pal:
type: pal
db_profile: bq
bq:
type: bigquery
method: oauth
project: my-project
dataset: my_dataset
location: asia-northeast1
Limitations
- Only table materialization is supported
- Python models are executed in the process running dbt, so the data size that can be handled depends on the memory of that process
License
Apache License 2.0.
This project was created by modifying code from dbt-fal.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbt_pal-0.2.0.tar.gz.
File metadata
- Download URL: dbt_pal-0.2.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4334ea0e67d56787eb360b704a5ab6bd2ced73291b24698b724c6eee4cfea26
|
|
| MD5 |
fa42d8e899efbb251343cc195adcf020
|
|
| BLAKE2b-256 |
0e6b7cc653bf5710ffb975f335f09e3daf16722e97110fcbc7dffec4e6273fad
|
File details
Details for the file dbt_pal-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dbt_pal-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5c44ea868faabc31615e66474440a75633aed478abdf99e7fd3d132e6fbcdd6
|
|
| MD5 |
696a58db14ce594cc215359cdd69536c
|
|
| BLAKE2b-256 |
4a4430e844ede0128ffef449199ce18e362af7a8d9e47dd78c51c106182f32c8
|