Skip to main content

Connection pooling for ADBC drivers from typed warehouse configs

Project description

adbc-poolhouse

[ Docs ]

Connection pooling for ADBC drivers from typed warehouse configs.

One config in, one pool out — create_pool(SnowflakeConfig(...)) returns a ready-to-use SQLAlchemy QueuePool.

Installation

pip install adbc-poolhouse

Driver extras are available for each supported warehouse (BigQuery, DuckDB, FlightSQL, PostgreSQL, Snowflake, SQLite). See the documentation for the full list.

Quick example

The example below uses DuckDB — no credentials or running server required.

from adbc_poolhouse import DuckDBConfig, create_pool, close_pool

# File-backed database (connections share the same file)
config = DuckDBConfig(database="/tmp/warehouse.db")
pool = create_pool(config)

with pool.connect() as conn:
    cursor = conn.cursor()
    cursor.execute("SELECT 42 AS answer")
    row = cursor.fetchone()
    print(row)  # (42,)

close_pool(pool)

pool.connect() checks out a connection from the pool and returns it when the with block exits. close_pool(pool) drains the pool and closes the underlying ADBC source connection.

Supported warehouses

PyPI drivers: BigQuery, DuckDB, FlightSQL, PostgreSQL, Snowflake, SQLite

Foundry-distributed drivers: ClickHouse, Databricks, MSSQL / Azure SQL / Fabric, MySQL, Redshift, Trino

Links

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 Distribution

adbc_poolhouse-1.3.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

adbc_poolhouse-1.3.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file adbc_poolhouse-1.3.0.tar.gz.

File metadata

  • Download URL: adbc_poolhouse-1.3.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for adbc_poolhouse-1.3.0.tar.gz
Algorithm Hash digest
SHA256 5dd57e126709f0f6f6222ab5d2f9f250b97abef5266570750043a7b7b61e42d0
MD5 77e26d44e00c733518896ef9f4b91e2e
BLAKE2b-256 cf3272cd74903be95dedaa539b9063fe6ee2bda52675dd93c09737068e31e49f

See more details on using hashes here.

Provenance

The following attestation bundles were made for adbc_poolhouse-1.3.0.tar.gz:

Publisher: release.yml on anentropic/adbc-poolhouse

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

File details

Details for the file adbc_poolhouse-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: adbc_poolhouse-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for adbc_poolhouse-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8da170b819e681eed993a77d946c6420103d9f97562c1a45a425f37c007a92a7
MD5 669e0b68605ddd3d338942b52d455699
BLAKE2b-256 2f4342680099135adbfd48aba6390b74001a30b7606d3f25c3086892d1436d1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for adbc_poolhouse-1.3.0-py3-none-any.whl:

Publisher: release.yml on anentropic/adbc-poolhouse

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