Skip to main content

Dagster integration with ADBC

Project description

dagster-adbc

A Dagster module that provides an integration with ADBC.

Installation

The dagster_adbc module is available as a PyPI package - install with your preferred python environment manager (We recommend uv).

uv venv
source .venv/bin/activate
uv pip install dagster-adbc

Additionally, the ADBC driver for your database must be installed. We recommend dbc for installing drivers.

uv pip install dbc
dbc install flightsql

Example Usage

from dagster import Definitions, EnvVar, asset
from dagster_adbc import ADBCResource


@asset
def my_table(dremio: ADBCResource) -> None:
    with dremio.get_connection() as connection, connection.cursor() as cursor:
        cursor.execute("SELECT * FROM my_table")
        table = cursor.fetch_arrow_table()


defs = Definitions(
    assets=[my_table],
    resources={
        "dremio": ADBCResource(
            driver="flightsql",
            uri="grpc+tcp://localhost:32010",
            db_kwargs={"username": "admin", "password": EnvVar("DREMIO_PASSWORD")},
        )
    },
)

Development

The Makefile provides the tools required to test and lint your local installation.

make test
make ruff
make check

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

dagster_adbc-0.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

dagster_adbc-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file dagster_adbc-0.0.2.tar.gz.

File metadata

  • Download URL: dagster_adbc-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dagster_adbc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f5c1b1c0d926c41003185908d74af0cd471316a5661a06cf7404a33631cd0054
MD5 fa1b363e436c0f8a37e8e5610e45eb89
BLAKE2b-256 4d86edfaee77e5be460365e67ab947824c32d7e591697118c665fe72963f03e1

See more details on using hashes here.

File details

Details for the file dagster_adbc-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dagster_adbc-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dagster_adbc-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78fd0eb73fcaeb40eaef85bbc36a353d7a057a16340249070e912baa6ebe395b
MD5 6230e8628edf25368f626c8816093b07
BLAKE2b-256 6f090fea6e75981bf572a786c3461749b3c96da61edc11e2e640634049a4e5fa

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