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.0.tar.gz (14.3 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.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbt_pal-0.3.0.tar.gz
  • Upload date:
  • Size: 14.3 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.0.tar.gz
Algorithm Hash digest
SHA256 acdfc1ce60da996a075c421b5f8612afe0a3d837e8578d30a698e9d9b2168295
MD5 f93aa6d33f9adafda5731dc8185f3219
BLAKE2b-256 3d8d08540cb67ad5c044fc54c534491998600ccc1d4422a119cf8128a548fa84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbt_pal-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ac9c687fa4781e4860d44724f3b07c16eb59ac8b5a96b91030bfbd0d899d3b7
MD5 e81aada8e2978475b4dadc9498ccd69a
BLAKE2b-256 7526412aecd24fbde2d66364d851e3547ccb44455920dc97415496dd1ec6bb69

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