Skip to main content

DBT plugin using dbt-core Python API for the floe data platform

Project description

floe-dbt-core

DBT plugin for floe using dbt-core Python API.

Overview

This plugin provides DBTCorePlugin, which wraps dbt-core's dbtRunner for:

  • Local development
  • CI/CD pipelines
  • Single-threaded execution

Note: dbtRunner is NOT thread-safe. For parallel execution, use floe-dbt-fusion.

Installation

pip install floe-dbt-core

Usage

The plugin is automatically discovered via entry points:

from floe_core.plugin_registry import get_registry
from floe_core.plugin_types import PluginType

registry = get_registry()
dbt_plugin = registry.get(PluginType.DBT, "core")

# Compile project
manifest_path = dbt_plugin.compile_project(
    project_dir=Path("my_project"),
    profiles_dir=Path("my_project"),
    target="dev"
)

# Run models
result = dbt_plugin.run_models(
    project_dir=Path("my_project"),
    profiles_dir=Path("my_project"),
    target="dev",
    select="tag:daily"
)

Features

  • Full dbt-core integration via dbtRunner
  • SQLFluff linting with dialect awareness
  • OpenTelemetry instrumentation
  • Structured error handling with file/line preservation

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

floe_dbt_core-0.1.0a1.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

floe_dbt_core-0.1.0a1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file floe_dbt_core-0.1.0a1.tar.gz.

File metadata

  • Download URL: floe_dbt_core-0.1.0a1.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for floe_dbt_core-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 986d595f36fc4cbf2792a19a3e21d55e7e248ab2b000b386f20ecb67fc18e8e9
MD5 69b506eac1daa763d059fe1cd0835719
BLAKE2b-256 2db75091701c657de053dfb09c3fda9404a9f3c755a6ad43bcd89aa0229370d4

See more details on using hashes here.

File details

Details for the file floe_dbt_core-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for floe_dbt_core-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 48bd657ce21e65d025f6e3bb65385e0805caa0b87c69459a39fece00ea23ee15
MD5 66476e72ca07fd14bd418891d4d5f3e8
BLAKE2b-256 c3d7076406af9321946b5d3ac1f5f63222fff266ee10c7e784028ff8789577e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page