dbt-duckdb
The duckdb adapter plugin for dbt (data build tool)
What it is and what it does
dbt-duckdb is an adapter that integrates dbt's data transformation framework with DuckDB, an embedded OLAP database designed for analytics. It lets you write dbt models in SQL or Python and execute them against DuckDB, which can read and write data directly from CSV, JSON, and Parquet files without requiring a separate load step. This enables a lightweight, self-contained data stack suitable for local development, CI/CD testing, or building a data lakehouse with minimal infrastructure.
The adapter supports both in-memory and persistent database modes, DuckDB extensions (like httpfs for cloud storage), the DuckDB Secrets Manager for credential handling, and fsspec-based filesystems for S3, GCS, and Azure Blob Storage. It also integrates with MotherDuck for cloud-hosted DuckDB instances and supports persisting dbt documentation as database comments. The package is actively maintained, supports Python 3.10–3.13, and has no known vulnerabilities.
Use it for:
- Test dbt data pipelines locally or in CI jobs using an in-memory DuckDB database without external dependencies.
- Build a lightweight data lakehouse that transforms CSV, Parquet, and JSON files directly without loading them into a database first.
- Run analytics transformations against cloud storage (S3, GCS, Azure) using DuckDB extensions and fsspec integration.
- Develop and prototype data pipelines on a single machine before deploying to a larger data warehouse.
- Persist dbt model and column documentation as DuckDB comments for exploration and automated tooling.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
dbt-duckdb connects dbt (a SQL/Python transformation framework) to DuckDB, an embedded OLAP database that can read and write CSV, JSON, and Parquet files directly without loading them first.
Yes. dbt-duckdb is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It is a solid choice if you want to run dbt transformations against an embedded or cloud-hosted DuckDB instance, especially for local development, testing, or lightweight analytics workloads that read/write external files directly.
Install
dbt-duckdb on PyPI
pip
pip install dbt-duckdbuv
uv add dbt-duckdbpoetry
poetry add dbt-duckdbInstalling dbt-duckdb
Before you install
Low friction: pure Python wheel with four runtime dependencies (dbt-core, dbt-adapters, dbt-common, duckdb). Actively maintained with a release 7 days ago and 1334 repository stars.
License in practice
Apache-2 permissive license: you can use, modify, and distribute dbt-duckdb freely in commercial and private projects, with minimal restrictions.
Quickstart
pip install dbt-duckdb
# In profiles.yml:
default:
outputs:
dev:
type: duckdb
path: /tmp/dbt.duckdb
target: dev
# Then run dbt commands as usual:
dbt run
Requires dbt-core >= 1.8.x and duckdb >= 1.0.0; Python >= 3.10.
Verify before relying
- Whether the package supports all DuckDB extensions listed in the description (httpfs, parquet, h3, uc_catalog, etc.) in practice.
- Performance characteristics and scalability limits for typical data lakehouse workloads.
- Compatibility with MotherDuck and DuckLake features beyond what the description states.
Package facts
| License | Apache-2 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — dbt-common, dbt-adapters, duckdb, dbt-core |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,932,864/month — #3,423 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dbt_duckdb-1.11.0-py3-none-any.whl
Keywords: setup, distutils
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
duckdbDuckDB is an in-process SQL database engine…
permissive · top 1,000 on PyPI
duckdb-extension-httpfsEnables DuckDB to query data over HTTP/HTTPS by…
permissive · top 15,000 on PyPI
duckdb-engineA SQLAlchemy driver that enables you to use…
permissive · top 5,000 on PyPI
duckdb-extensionsPackages DuckDB core extensions as…
permissive · top 15,000 on PyPI
dbt-athenadbt-athena is a dbt adapter that enables data…
permissive · top 5,000 on PyPI
dbt-athena-communityA dbt adapter that enables data transformation…
permissive · top 5,000 on PyPI
dltdlt automates extraction, schema inference, and…
permissive · top 5,000 on PyPI
dbt-coredbt-core transforms raw data in a warehouse…
permissive · top 1,000 on PyPI
dbt-databricksdbt-databricks is a dbt adapter that enables…
permissive · top 5,000 on PyPI
dbfreadReads DBF database files (dBase, Visual FoxPro,…
permissive · top 5,000 on PyPI