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.1.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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dagster_adbc-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.1.tar.gz
Algorithm Hash digest
SHA256 d32ac154c74d7b9ad4f4eb009401f9318e04c14ff8b8840a17ef6ec156814efe
MD5 1365fab3a773b4c3cdb4be17a6c5f5de
BLAKE2b-256 8dc0aa1fc4adb95ebbfa06a2e0b2f96ca007e76d686ce650e61e2982243bbce6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dagster_adbc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6e8d106e3ba58012e9851106632986176eb563f4941e76448b08ecec3b2786b
MD5 462ae238e8c3e00bbd5f8b8199202e83
BLAKE2b-256 14e7df991c1584ac14950e6262ff8e218ee0735a17dcbe4536dee9f305256be0

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