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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adbc_driver_quack-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: adbc_driver_quack-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 7.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a86b7bcae4ddf4e34219f02e41e1f76d80f96405dc00258b7876c71205808ad
|
|
| MD5 |
447ba6f5618272315c5fd4cf3856bd8c
|
|
| BLAKE2b-256 |
7d8db8609264ed27b32adb22245f5b2186b86d4b7734e1eaa88f581786dad54f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adbc_driver_quack-0.1.0a1-py3-none-any.whl -
Subject digest:
9a86b7bcae4ddf4e34219f02e41e1f76d80f96405dc00258b7876c71205808ad - Sigstore transparency entry: 1536038586
- Sigstore integration time:
-
Permalink:
gizmodata/adbc-driver-quack@6aae026597f8f8d79535687ef0b778699a9658d9 -
Branch / Tag:
refs/tags/v0.1.0-alpha.1 - Owner: https://github.com/gizmodata
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@6aae026597f8f8d79535687ef0b778699a9658d9 -
Trigger Event:
push
-
Statement type: