Skip to main content

BigQuery ADBC driver for Python

bigquery-adbc gives Python columnar access to Google BigQuery, through a DB-API 2.0 interface or the low-level ADBC API. Results arrive as Arrow, and bulk ingestion streams Arrow to the BigQuery Storage Write API. The wheels bundle the native Rust driver; a Rust toolchain is needed only when building from source. Requires Python 3.11 or newer.

This project is experimental and AI-generated, and has not seen real-world use. See the known limitations.

Install

python3 -m pip install "bigquery-adbc[dbapi]"

The dbapi extra installs PyArrow; the pandas extra also adds pandas for cursor.fetch_df(). The low-level bigquery_adbc.connect() API needs neither.

To build from source, install Rust, then run this from the repository root. The build uses the repository's pinned Rust toolchain:

python3 -m pip install "./python[dbapi]"

To install a built wheel, replace ./python with its path.

Usage

The driver uses Application Default Credentials (ADC) by default. For local development, set them up with:

gcloud auth application-default login

Replace my-gcp-project with a project where those credentials can run BigQuery jobs:

from bigquery_adbc import dbapi

with dbapi.connect("bigquery:///my-gcp-project", autocommit=True) as connection:
    with connection.cursor() as cursor:
        cursor.execute("SELECT 1")
        print(cursor.fetchone())

cursor.fetch_arrow_table() reads a result as Arrow and cursor.fetch_df() as pandas. See more examples of bulk ingestion and query parameters.

The low-level ADBC API can take its whole configuration as options:

import bigquery_adbc as bigquery

with bigquery.connect(
    db_kwargs={
        bigquery.DatabaseOptions.PROJECT_ID: "my-gcp-project",
    }
) as database:
    print(database.get_option(bigquery.DatabaseOptions.PROJECT_ID))

bigquery.connect() returns an adbc_driver_manager.AdbcDatabase; dbapi.connect() returns a DB-API connection. Both accept a URI, db_kwargs, or both, and explicit options override URI parameters. See connection URIs for dataset, location, quota-project and impersonation settings.

Transactions, batching, and errors

Use autocommit=True for independent queries. With the PEP 249 default, autocommit=False, the first query that needs a transaction opens a BigQuery session. BigQuery rejects permanent-table DDL such as CREATE TABLE inside a transaction, and the driver rejects adbc_ingest. Leaving the with block rolls back uncommitted work; call connection.commit() first to keep it.

executemany executes the query once per parameter row. For bulk inserts, use cursor.adbc_ingest, which streams rows through the Storage Write API. On a reused cursor, an adbc_ingest call that omits catalog_name or db_schema_name keeps the previous call's value; pass "" for the connection's default (UP-95).

Invalid credentials raise ProgrammingError; transient token-exchange failures raise OperationalError. Catch dbapi.DatabaseError to handle both. See error statuses.

Set ADBC_DRIVER_BIGQUERY_LOG_LEVEL=warn before the first connect() to log Storage Read fallbacks and failed cancellations to standard error; debug also logs retries. Jupyter shows these in the kernel console. See diagnostics.

Options

Configure database and connection options when connecting, and statement options on a cursor:

Enum Set with Examples
DatabaseOptions connect(db_kwargs={...}) Credentials, project, dataset and location.
ConnectionOptions dbapi.connect(conn_kwargs={...}) Catalog, schema and result reading.
StatementOptions cursor.adbc_statement.set_options(**{...}) Parameters, query limits and ingestion.

Pass autocommit as a keyword to dbapi.connect(), not in conn_kwargs. New statements inherit their connection's read controls and bulk-ingest method.

Option enums are StrEnums and work directly as keys and values: str(DatabaseOptions.PROJECT_ID) is "bigquery.project_id". The manager's typed getters need .value, for example statement.get_option_float(StatementOptions.PROGRESS.value).

BulkIngestMethod.STORAGE_WRITE is the only supported bulk-ingest method; the raw value "load" returns NOT_IMPLEMENTED. StatementOptions.QUERY_MAXIMUM_BILLING_TIER also returns NOT_IMPLEMENTED; use QUERY_MAXIMUM_BYTES_BILLED to cap query cost.

See the option reference for defaults, constraints, and write-only credential options. Reading uri returns the configured URI with credentials redacted; read individual options to see the effective configuration.

Development

Package builds, local tests and loading a development driver are covered in the Python development guide.

Metadata

Release files for bigquery-adbc 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bigquery-adbc 0.5.0
File Size Uploaded Provenance Actions
bigquery_adbc-0.5.0.tar.gz 1.6 MB With provenance Details for bigquery_adbc-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for bigquery-adbc 0.5.0
File Actions
bigquery_adbc-0.5.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for bigquery_adbc-0.5.0-py3-none-win_amd64.whl
bigquery_adbc-0.5.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for bigquery_adbc-0.5.0-py3-none-manylinux_2_28_x86_64.whl
bigquery_adbc-0.5.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for bigquery_adbc-0.5.0-py3-none-manylinux_2_28_aarch64.whl
bigquery_adbc-0.5.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for bigquery_adbc-0.5.0-py3-none-macosx_11_0_arm64.whl
bigquery_adbc-0.5.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for bigquery_adbc-0.5.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 22.3 MB

Release files / bigquery_adbc-0.5.0.tar.gz

Download URL bigquery_adbc-0.5.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6f554a391f55b68e57c1eb4997ed23f767aa6b3d2a09ec09942100564e4fc4f7
BLAKE2b-256 checksum
How to use checksums
70948ec227412db403c71196bb0d93bdb22faf8db4846901c71c7a9ed0508a75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / bigquery_adbc-0.5.0-py3-none-win_amd64.whl

Download URL bigquery_adbc-0.5.0-py3-none-win_amd64.whl
Size 4.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
48e5cfcffdc163e50be4fcbfe6483488d4e564ae08b4dd4d238fb9a5e016e0e6
BLAKE2b-256 checksum
How to use checksums
4fae8cd3d17cf644c2775fcbe09d7b2e8c2128f177a6aea3c143b8ad39350d01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / bigquery_adbc-0.5.0-py3-none-manylinux_2_28_x86_64.whl

Download URL bigquery_adbc-0.5.0-py3-none-manylinux_2_28_x86_64.whl
Size 4.2 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
40a6a25e39dac5c3d5ea42a507ce02ed904249b10b22d2e6b5cbfacc1c05a1f4
BLAKE2b-256 checksum
How to use checksums
07cd9e0204af64cd07559715ad098b59d166a48d950736e363d213bf95ec289e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / bigquery_adbc-0.5.0-py3-none-manylinux_2_28_aarch64.whl

Download URL bigquery_adbc-0.5.0-py3-none-manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
b848806eee4f43698fc8e229a5286f4b310f0b5340b50728c84d74c924cf73fa
BLAKE2b-256 checksum
How to use checksums
743ecdd6d278b994007f997d41930ad4958971eaa64e84f863414f57c21b7e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / bigquery_adbc-0.5.0-py3-none-macosx_11_0_arm64.whl

Download URL bigquery_adbc-0.5.0-py3-none-macosx_11_0_arm64.whl
Size 3.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7d1e45989b298bbd1a9e26922034c349f28e1ed1c4e7c2eec1f54dc052a07c46
BLAKE2b-256 checksum
How to use checksums
19501b989c8d4bb930c54758993b550bb3e2395e7570b003e2dc90ab2ba498a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / bigquery_adbc-0.5.0-py3-none-macosx_10_12_x86_64.whl

Download URL bigquery_adbc-0.5.0-py3-none-macosx_10_12_x86_64.whl
Size 4.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ec9a00968c0a79b076dffd1f07e6d2ed88e78ee361304df145cff9451f3de6df
BLAKE2b-256 checksum
How to use checksums
75d1bc8e7bb3180f1ff34bc69192e1a140dc0babf9512717fdac62ae65f87a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for bigquery-adbc 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for bigquery_adbc-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page