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 (DuckDB, Snowflake, BigQuery, PostgreSQL, FlightSQL). 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
- DuckDB
- Snowflake
- BigQuery
- PostgreSQL
- FlightSQL
- Databricks
- Redshift
- Trino
- MSSQL / Azure SQL / Fabric
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
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_poolhouse-1.0.1.tar.gz.
File metadata
- Download URL: adbc_poolhouse-1.0.1.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ae1aa40aaa4d9defe338dfa3dca10c2019129d467e931468393137d2994f1c
|
|
| MD5 |
34eaf7fb5506dd253c65b6e9967542f5
|
|
| BLAKE2b-256 |
ff125297b45735bfba213bf9721069215544d55c6c7dc09e5d4cf821f3e24827
|
Provenance
The following attestation bundles were made for adbc_poolhouse-1.0.1.tar.gz:
Publisher:
release.yml on anentropic/adbc-poolhouse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adbc_poolhouse-1.0.1.tar.gz -
Subject digest:
40ae1aa40aaa4d9defe338dfa3dca10c2019129d467e931468393137d2994f1c - Sigstore transparency entry: 1005480752
- Sigstore integration time:
-
Permalink:
anentropic/adbc-poolhouse@cceeabee472b77a0d4590bf7ee18435687286e0f -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/anentropic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cceeabee472b77a0d4590bf7ee18435687286e0f -
Trigger Event:
push
-
Statement type:
File details
Details for the file adbc_poolhouse-1.0.1-py3-none-any.whl.
File metadata
- Download URL: adbc_poolhouse-1.0.1-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7cd403969579605faa6d02113efd6a58bb23bfcd83c86dab6e208bb35ec6981
|
|
| MD5 |
b748158d10258faf949c3c00501efabe
|
|
| BLAKE2b-256 |
c84636f127ee99ed3e955fe46993077fbf3cba546d7033dda71690761e90f06f
|
Provenance
The following attestation bundles were made for adbc_poolhouse-1.0.1-py3-none-any.whl:
Publisher:
release.yml on anentropic/adbc-poolhouse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adbc_poolhouse-1.0.1-py3-none-any.whl -
Subject digest:
c7cd403969579605faa6d02113efd6a58bb23bfcd83c86dab6e208bb35ec6981 - Sigstore transparency entry: 1005480761
- Sigstore integration time:
-
Permalink:
anentropic/adbc-poolhouse@cceeabee472b77a0d4590bf7ee18435687286e0f -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/anentropic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cceeabee472b77a0d4590bf7ee18435687286e0f -
Trigger Event:
push
-
Statement type: