Combine duckdb-dbt and Kedro Dataset to easily read Kedro Dataset configs (yaml), enabling conversion of Kedro projects to dbt.
Project description
Combine duckdb-dbt and Kedro Dataset to easily read Kedro Dataset configs (yaml), enabling conversion of Kedro projects to dbt.
Demo
You can add your existing Kedro definitions to your dbt sources like so:
pip install dbt_duckdb_kedro_datasets
version: 2
sources:
- name: my_source # can call this anything
schema: main
meta:
plugin: dbt_duckdb_kedro_datasets # this library
tables:
- name: my_table # can call this anything
description: "A dbt_duckdb_kedro_datasets test"
meta:
type: pandas.CSVDataset
filepath: ./data/1_raw/bikes.csv # file to ingest
load_args:
sep: ','
Now we can access this CSV in dbt
select *
from {{ source('my_source', 'my_table') }}
For a more complete example look at this
Todo
-[x] plugin backbone -[x] initial install -[x] initial execution -[x] one config passed from yaml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dbt_duckdb_kedro_datasets-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fad3c10f400431f44500ac80d0570b93cf6a372d3cd4ea44d9e74d8eae4acd0d |
|
MD5 | 09c5a09cd5d2ab6b1b59a661706b3686 |
|
BLAKE2b-256 | 64ec902d2eb224e33e1286525a930e9831822e04589fd7f5c6fdba12ca5ca0a4 |
Close
Hashes for dbt_duckdb_kedro_datasets-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2838cf3afb2879ae4f8a087887abe3867c3201114f2007e589b95d1f49f79f74 |
|
MD5 | 54e629fb16d41a2a1291f095d1f42249 |
|
BLAKE2b-256 | 6b74d2a60665f321311211dc74db454ac1cc1b8f5b9112caf28c8b968ae9d731 |