Skip to main content

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

dbt_pal-0.2.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbt_pal-0.2.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

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

Hashes for dbt_pal-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a4334ea0e67d56787eb360b704a5ab6bd2ced73291b24698b724c6eee4cfea26
MD5 fa42d8e899efbb251343cc195adcf020
BLAKE2b-256 0e6b7cc653bf5710ffb975f335f09e3daf16722e97110fcbc7dffec4e6273fad

See more details on using hashes here.

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

Hashes for dbt_pal-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5c44ea868faabc31615e66474440a75633aed478abdf99e7fd3d132e6fbcdd6
MD5 696a58db14ce594cc215359cdd69536c
BLAKE2b-256 4a4430e844ede0128ffef449199ce18e362af7a8d9e47dd78c51c106182f32c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page