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.3.1.tar.gz (15.2 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.3.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file dbt_pal-0.3.1.tar.gz.

File metadata

  • Download URL: dbt_pal-0.3.1.tar.gz
  • Upload date:
  • Size: 15.2 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.3.1.tar.gz
Algorithm Hash digest
SHA256 bc03bf5cbe19ee31fbd27a31697ed67d62919b0b57887cde5cac46b5d835f1b6
MD5 0ae17fae3afd6dbb6f1c3b8a3f6bda50
BLAKE2b-256 2052f458f7da63bdd0a9ebda1a98655dc13fabdbd0de032baaff9266adf6fb5f

See more details on using hashes here.

File details

Details for the file dbt_pal-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: dbt_pal-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad0241dd4a21e3e867f05e2b570e5c21ef41550f2f394d0830cd20ca8fd4b9cd
MD5 a8baf9798548a9015c10785b14f3b49c
BLAKE2b-256 a13861d9d1d93244bf4c84900c81e712853f8e078b4d66bb5565ea22c1d1ee43

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