Registry / data / dbt-metabase

dbt-metabase

JSON →
library1.7.5pypypi✓ verified 84d ago

A dbt package that synchronizes dbt models and exposures with Metabase, automatically creating and updating Metabase models, metrics, and dashboards. Current version 1.7.4, requires Python >=3.10. Released about monthly.

pip install dbt-metabase
INSTALL
IMPORT
SIG · DBT-METABASE
D
dbt-metabase
datapythonv1.7.5
Install
3.3s avg
Import
Disk
36MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.7.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 36.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.3s · import 0.000s · 38MB
36MB installed
● package 36MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DbtMetabase
from dbtmetabase import DbtMetabase
from dbt_metabase import MetabaseSetup

Syncs dbt models and exposures to Metabase using default settings.

from dbt_metabase import MetabaseSetup setup = MetabaseSetup( metabase_url=os.environ.get('MB_URL', 'http://localhost:3000'), metabase_username=os.environ.get('MB_USER', 'admin@example.com'), metabase_password=os.environ.get('MB_PASSWORD', 'password'), dbt_project_dir='./my_dbt_project', metabase_database_id=1 ) exposures = setup.sync( include_tags=['metabase'], exclude_models=['stg_*'] )
dbt --version
Debug
Known issues
breakingv1.7.0 upgraded to Python >=3.10; drop Python 3.9 support.
fix
Upgrade your Python runtime to 3.10 or later.
affects: >=1.7.0
gotchaThe `metabase_database_id` parameter is required unless Metabase has only one database with matching name.
fix
Provide the correct Metabase database ID via `metabase_database_id` or set it in the profile.
affects: all
deprecatedv1.6.0 deprecated the old `meta` structure; dbt 1.10+ moved meta to config block.
fix
Ensure your dbt models use the new config.meta syntax (https://docs.getdbt.com/reference/resource-configs/meta).
affects: >=1.6.0
breakingv1.7.0 removed support for Python 3.9; older Python versions may fail with import errors.
fix
Check your Python version with `python --version` and upgrade if needed.
affects: >=1.7.0
Upgrade
Version history
1.7.5latest on PyPI · released May 6, 2026
Audit
Dependencies
dbt-corerequiredRequired for dbt compilation and manifest parsing
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
dbt-metabase — pip install dbt-metabase · libregistry