Skip to main content

dbt adapter for running Python models locally against BigQuery, without Dataproc

Project description

dbt-pal

dbt-pal is Python Adapter Layer

A dbt adapter for running Python models without Dataproc.

  • 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.1.0.tar.gz (12.7 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.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbt_pal-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 1f6e8ace764979276be68fcffe8390e1e858cc607c95020a015895a1cadf15a4
MD5 6ae54034892e2eac835d6bf21daa2464
BLAKE2b-256 0a922e543b993204e64772e14a9b3d53bb8a10c4990447a1c2028277ccab1041

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbt_pal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05b3b5fea97c5a495dc0578bf8932399165fd3601b2aaffa857be5db87bfbc0a
MD5 ba72d10ccb3578d1c35ad89c0b848d31
BLAKE2b-256 5699432b5785757cb76694ea9fd26683b745220a7023c15b78c72e46c3345e6f

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