usr-av / dbt-ibis

Write your dbt models using Ibis

Home Page:https://binste.github.io/dbt-ibis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dbt-ibis

With dbt-ibis you can write your dbt models using Ibis. You can find the full documentation here.

A simple dbt-ibis model looks like this:

from dbt_ibis import depends_on, ref


@depends_on(ref("stg_stores"))
def model(stores):
    return stores.filter(stores["country"] == "USA")

You can install dbt-ibis via pip:

pip install dbt-ibis

In addition, you'll need to install the relevant Ibis backend for your database.

You can read about the advantages of combining dbt and Ibis in this blog post.

Development

pip install -e '.[dev]'

You can run linters and tests with

hatch run linters
hatch run tests

About

Write your dbt models using Ibis

https://binste.github.io/dbt-ibis/

License:Apache License 2.0


Languages

Language:Python 100.0%