Skip to main content

adbc-driver-chargewire

A Python ADBC driver for the Chargewire protocol: SQL over plain HTTP, with results, parameters and bulk uploads as Arrow IPC streams. It is generic: it talks to any Chargewire server.

The driver itself is a native Go library (libadbc_driver_chargewire) bundled in the platform wheel; this package adds a DB-API 2.0 connect().

Usage

from adbc_driver_chargewire import dbapi

with dbapi.connect(
    uri="chargewire://db.example.com:31337",  # HTTPS; add ?tls=false for plain HTTP
    username="joe",
    password="…",
) as conn:
    with conn.cursor() as cur:
        cur.execute(operation="SELECT n_name FROM nation WHERE n_nationkey = ?", parameters=[24])
        print(cur.fetch_arrow_table())

        cur.execute(operation="CREATE TABLE t (id INTEGER)")  # runs right away
        cur.adbc_ingest(table_name="t", data=my_arrow_table, mode="append")

connect() takes:

Argument Meaning
uri chargewire://host:port[/base-path] (TLS), ?tls=false for plain HTTP; https:// and http:// URLs work too. profile://name names a connection profile.
username, password Password sign-in (any characters, : included).
access_token A Chargewire access token obtained elsewhere, instead of a password.
auth_type "password" (default), "client_certificate" ("mtls"): sign in with tls_client_cert/tls_client_key alone, no password (the server binds the token to the certificate), or "oauth_browser": sign in through a browser with the server's identity provider (servers with capability oauth_browser).
open_browser Browser sign-in: True (default) opens the system's browser, False prints the sign-in URL to stderr, a string is the command that opens it.
oauth_timeout_seconds Browser sign-in: how long the person has to sign in (default 300).
resume_timeout Seconds to keep sending a request again while the server answers server_resuming (a stopped server starting again because you connected), each time after its Retry-After (default 600; 0: fail at once).
tls_root_certs CA certificates to trust (PEM text or file path).
tls_client_cert, tls_client_key Client certificate for mutual TLS (PEM text or path).
tls_skip_verify Skip certificate verification (development only; off unless set).
catalog, db_schema Make these current for the session.
autocommit True by default; False starts a transaction (conn.commit(), conn.rollback()).
profile An ADBC connection profile.
db_kwargs, conn_kwargs Any other driver option, e.g. adbc.chargewire.statement.async.

Driver options are in adbc_driver_chargewire.DatabaseOptions, ConnectionOptions and StatementOptions; the repository README lists them all.

By default, on a server that offers it, a large result is read over up to 8 connections at once (StatementOptions.RESULT_PARTITIONS), and an adbc_ingest of two batches or more is sent as up to 8 parts at once and committed as one, all or nothing (StatementOptions.INGEST_PARTS). Set either to "1" for one stream; a partitioned ingest's rows land in no defined order.

Errors are adbc_driver_manager exceptions whose details carry the server's error code (b"chargewire.code", e.g. b"sql_error") and request id (b"chargewire.request_id").

Development

See the repository: build the library with make -C go lib, then pip install -e "python[test]". Unit tests need no server; the integration tests start the server named by CHARGEWIRE_ADBC_TEST_SERVER_BINARY and fail without it.

Metadata

Release files for adbc-driver-chargewire 2.2.8

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

Built distributions (wheels)

Table of built distributions (wheels) for adbc-driver-chargewire 2.2.8
File Actions
adbc_driver_chargewire-2.2.8-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for adbc_driver_chargewire-2.2.8-py3-none-win_amd64.whl
adbc_driver_chargewire-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for adbc_driver_chargewire-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
adbc_driver_chargewire-2.2.8-py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for adbc_driver_chargewire-2.2.8-py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl
adbc_driver_chargewire-2.2.8-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for adbc_driver_chargewire-2.2.8-py3-none-macosx_11_0_x86_64.whl
adbc_driver_chargewire-2.2.8-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for adbc_driver_chargewire-2.2.8-py3-none-macosx_11_0_arm64.whl

Total release size: 54.4 MB

Release files / adbc_driver_chargewire-2.2.8-py3-none-win_amd64.whl

Download URL adbc_driver_chargewire-2.2.8-py3-none-win_amd64.whl
Size 11.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
06c21ac6ec8e5c7d463c1ec0c0ede0cae102f38306f2a7429a3521bb835705a0
BLAKE2b-256 checksum
How to use checksums
6e3a741e4e2e5c7a2ec01c9ffe5ff5c9b9b8bc848bad4b43d73d31b05575c8dc
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 7, 2026.

Transparency log

Release files / adbc_driver_chargewire-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL adbc_driver_chargewire-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 10.6 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
06e495c8534debe90c1f7b38710e63cb56e2681df6232af51158c3f0295e6c45
BLAKE2b-256 checksum
How to use checksums
809ede31ca292f37fad93a3b9f946daec05113ece58b4f3443e19dfcac17dd4d
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 7, 2026.

Transparency log

Release files / adbc_driver_chargewire-2.2.8-py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl

Download URL adbc_driver_chargewire-2.2.8-py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl
Size 12.0 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
08b472c85b60a902b7c7aae8ef064a48f67e2c20bee47e593a5452fbffad37f1
BLAKE2b-256 checksum
How to use checksums
5df67e0ab85d59b4dcde446286890a8e4dded379a890c3d31452707981e213cc
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 7, 2026.

Transparency log

Release files / adbc_driver_chargewire-2.2.8-py3-none-macosx_11_0_x86_64.whl

Download URL adbc_driver_chargewire-2.2.8-py3-none-macosx_11_0_x86_64.whl
Size 11.0 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
b923848c12890944d70b306c89bfd69175b9a30628e76e7ec38833d85e1dfa9d
BLAKE2b-256 checksum
How to use checksums
3f455bbf5eaf500f73c67602e2f808e5fc8d4ab9854ef0dd6deb60e696dbbacc
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 7, 2026.

Transparency log

Release files / adbc_driver_chargewire-2.2.8-py3-none-macosx_11_0_arm64.whl

Download URL adbc_driver_chargewire-2.2.8-py3-none-macosx_11_0_arm64.whl
Size 9.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e8851eca3600c216f1480e773dc90f9e14f1ac8626cf87ac24705e2c36feeb23
BLAKE2b-256 checksum
How to use checksums
3afc13fb8b8e63c69667b4ec80bbea84d8bc2320e726fcdb0000793f799b8307
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 7, 2026.

Transparency log

Security for adbc-driver-chargewire 2.2.8

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 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for adbc_driver_chargewire-2.2.8-py3-none-win_amd64.whl

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 7, 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