Skip to main content

An Apache Arrow ADBC driver for DuckDB's Quack remote protocol.

Project description

adbc-driver-quack

Apache Arrow ADBC driver for DuckDB's Quack remote protocol.

See the main repo at https://github.com/gizmodata/adbc-driver-quack for source, design notes, and the companion JDBC driver.

Install

pip install adbc-driver-quack

Quickstart

import adbc_driver_quack.dbapi
import pyarrow

with adbc_driver_quack.dbapi.connect(
    "quack://127.0.0.1:9494",
    db_kwargs={"adbc.quack.token": "my-token"},
) as conn, conn.cursor() as cur:
    cur.execute("SELECT 42 AS answer")
    table: pyarrow.Table = cur.fetch_arrow_table()
    print(table)

Bulk ingest:

import pyarrow as pa
import adbc_driver_quack.dbapi

t = pa.table({"id": [1, 2, 3], "name": ["alice", "bob", "carol"]})
with adbc_driver_quack.dbapi.connect("quack://127.0.0.1:9494") as conn, conn.cursor() as cur:
    cur.adbc_ingest("customers", t, mode="append")

License: MIT.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

adbc_driver_quack-0.1.0a1-py3-none-any.whl (7.9 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for adbc_driver_quack-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a86b7bcae4ddf4e34219f02e41e1f76d80f96405dc00258b7876c71205808ad
MD5 447ba6f5618272315c5fd4cf3856bd8c
BLAKE2b-256 7d8db8609264ed27b32adb22245f5b2186b86d4b7734e1eaa88f581786dad54f

See more details on using hashes here.

Provenance

The following attestation bundles were made for adbc_driver_quack-0.1.0a1-py3-none-any.whl:

Publisher: python.yml on gizmodata/adbc-driver-quack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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