Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Write your dbt models using Ibis
https://github.com/binste/dbt-ibis

data dbt ibis

Last synced: about 20 hours ago
JSON representation

Write your dbt models using Ibis

Awesome Lists containing this project

README

        

# dbt-ibis
With dbt-ibis you can write your [dbt](https://www.getdbt.com/) models using [Ibis](https://ibis-project.org/). You can find the full documentation [here](https://binste.github.io/dbt-ibis/intro.html).

A simple dbt-ibis model looks like this:
```python
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 or conda:
```bash
pip install dbt-ibis
# or
conda install -c conda-forge dbt-ibis
```

In addition, you'll need to install the relevant [`Ibis` backend](https://ibis-project.org/install) for your database.

You can read about the advantages of combining dbt and Ibis in [this blog post](https://ibis-project.org/posts/dbt-ibis/).

## Development
```bash
pip install -e '.[dev]'
```

You can run linters and tests with
```bash
hatch run linters
hatch run tests
```