ADBC PostgreSQL Driver for Python
This package contains bindings for the PostgreSQL driver, using the driver manager to provide a DBAPI 2.0/PEP 249-compatible interface on top.
Example
import adbc_driver_postgresql.dbapi
uri = "postgresql://postgres:password@localhost:5432/postgres"
with adbc_driver_postgresql.dbapi.connect(uri) as conn:
with conn.cursor() as cur:
cur.execute("SELECT 1")
print(cur.fetch_arrow_table())
Building
Dependencies: a build of the PostgreSQL driver, and the
adbc-driver-manager Python package. Optionally, install PyArrow to
use the DBAPI 2.0-compatible interface.
Set the environment variable ADBC_POSTGRESQL_LIBRARY to the path to
libadbc_driver_postgresql.{dll,dylib,so} before running pip install.
# If not already installed
pip install -e ../adbc_driver_manager
export ADBC_POSTGRESQL_LIBRARY=/path/to/libadbc_driver_postgresql.so
pip install --no-deps -e .
For users building from the arrow-adbc source repository, you can alternately use CMake to manage library dependencies and set environment variables for you. Assuming you specify -DADBC_DRIVER_POSTGRESQL=ON you can also add -DADBC_BUILD_PYTHON=ON to define a python target.
For example, assuming you run cmake from the project root:
cmake -S c -B build --preset debug -DADBC_BUILD_PYTHON=ON -DADBC_DRIVER_POSTGRESQL=ON
cmake --build build --target python
will properly build and install the Python library for you.
See CONTRIBUTING.md for details on the general build process.
Testing
A running instance of PostgreSQL is required. For example, using Docker:
$ docker run -it --rm \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=tempdb \
-p 5432:5432 \
postgres
Then, to run the tests, set the environment variable specifying the PostgreSQL URI before running tests:
$ export ADBC_POSTGRESQL_TEST_URI=postgresql://localhost:5432/postgres?user=postgres&password=password
$ pytest -vvx
See CONTRIBUTING.md for details on the general test process.
Metadata
Release files for adbc-driver-postgresql 1.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adbc_driver_postgresql-1.13.0.tar.gz | 18.5 kB | Without provenance | Details for adbc_driver_postgresql-1.13.0.tar.gz |
Built distributions (wheels)
Total release size: 20.4 MB
Release files / adbc_driver_postgresql-1.13.0.tar.gz
| Download URL | adbc_driver_postgresql-1.13.0.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecebbf32e4841d4874229614c98f7dcf60ec657882641d6cb20cd54b2a7423bf
|
|
BLAKE2b-256 checksum How to use checksums |
e38c34d8bb83444f7ee193ed8d90a59f263ffa1dffa65e4b49c64ebc556b0455
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / adbc_driver_postgresql-1.13.0-py3-none-win_arm64.whl
| Download URL | adbc_driver_postgresql-1.13.0-py3-none-win_arm64.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
ed770fddf8b5fedf98e36b728224f1a5df3c0e1daaea1abc6feb41a765c7aa79
|
|
BLAKE2b-256 checksum How to use checksums |
21d67e0176a984252e22f1428b8e9d5cce9b201ad521f424be40f2ac048fb37c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / adbc_driver_postgresql-1.13.0-py3-none-win_amd64.whl
| Download URL | adbc_driver_postgresql-1.13.0-py3-none-win_amd64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c97a0b71e7205b7aac7f8bcd85a41280ef56e2d788110d2572c52ac3d447e25d
|
|
BLAKE2b-256 checksum How to use checksums |
828f519def2e78e435139de9de645933cfcfe38ca997193d5d23365406d228b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / adbc_driver_postgresql-1.13.0-py3-none-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
| Download URL | adbc_driver_postgresql-1.13.0-py3-none-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
a86819ba7c79b1d067c4a5344358b4d346bab58e888d7879ed2b25d97cc59ba1
|
|
BLAKE2b-256 checksum How to use checksums |
376bdd22c016305e84b8b9959784e77bbd20c454bd82463dc8de5a839abde206
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / adbc_driver_postgresql-1.13.0-py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | adbc_driver_postgresql-1.13.0-py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 3.9 MB |
| Tags | Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
f2f3c51076fc27ba768bad2dc4cc3888655ac719473aa7d933b2813860491014
|
|
BLAKE2b-256 checksum How to use checksums |
a8073c6c59a60fb423df8e5912f6442c1c2a0a966d5a0b8dc82de0807b8256d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / adbc_driver_postgresql-1.13.0-py3-none-macosx_11_0_arm64.whl
| Download URL | adbc_driver_postgresql-1.13.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7981ae7c5ecd7ba4c649cd00a96e81cf0e39475d3fa472901c5fd19b4e9de4a8
|
|
BLAKE2b-256 checksum How to use checksums |
042f79e0e9b471293320a79805a6dd77199ceaf8d73789dce35af5959b2db778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / adbc_driver_postgresql-1.13.0-py3-none-macosx_10_15_x86_64.whl
| Download URL | adbc_driver_postgresql-1.13.0-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
12fd64bf6ec16705d30d26c38ac2cc47fe8c7006ac2902c43234d61cb6ae8a43
|
|
BLAKE2b-256 checksum How to use checksums |
253c9f62b28e0a61e0af885e5e7271a78fc899dac3e9641c42aab01f7fe716bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for adbc-driver-postgresql 1.13.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.