Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/binste/dbt-ibis
- Owner: binste
- License: apache-2.0
- Created: 2023-09-05T14:01:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-02T18:34:51.000Z (6 months ago)
- Last Synced: 2024-10-01T23:37:13.710Z (about 1 month ago)
- Topics: data, dbt, ibis
- Language: Python
- Homepage: https://binste.github.io/dbt-ibis/
- Size: 1.83 MB
- Stars: 47
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-dbt - dbt-ibis - Write your dbt models using [Ibis](https://ibis-project.org/), the portable Python dataframe library. (Packages)
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
```