Skip to main content

A generic entrypoint for ADBC drivers.

Project description

ADBC Driver Manager for Python

This package contains bindings for the ADBC Driver Manager, as well as a DBAPI 2.0/PEP 249-compatible interface on top. This can be used to load ADBC drivers at runtime and use them from Python. Backend-specific packages like adbc_driver_postgresql wrap this package in a more convenient interface, and should be preferred where they exist.

The DBAPI 2.0 interface requires PyArrow, and exposes a number of extensions mimicking those of Turbodbc or DuckDB's Python packages to allow you to retrieve Arrow Table objects instead of being limited to the row-oriented API of the base DBAPI interface.

Building

Dependencies: a C++ compiler.

For users building from the arrow-adbc source repository, you can alternately use CMake to manage library dependencies and set environment variables for you. You can 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
cmake --build build --target python

will properly build and install the Python library for you.

See CONTRIBUTING.md for details.

Testing

The SQLite driver must be loadable at runtime (e.g. it must be on LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, or PATH).

See CONTRIBUTING.md for details.

$ export LD_LIBRARY_PATH=path/to/sqlite/driver/
$ pytest -vvx

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

adbc_driver_manager-0.11.0-cp312-cp312-win_amd64.whl (540.8 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

adbc_driver_manager-0.11.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

adbc_driver_manager-0.11.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

adbc_driver_manager-0.11.0-cp312-cp312-macosx_11_0_arm64.whl (364.5 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

adbc_driver_manager-0.11.0-cp312-cp312-macosx_10_15_x86_64.whl (452.1 kB view hashes)

Uploaded CPython 3.12 macOS 10.15+ x86-64

adbc_driver_manager-0.11.0-cp311-cp311-win_amd64.whl (542.5 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

adbc_driver_manager-0.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

adbc_driver_manager-0.11.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

adbc_driver_manager-0.11.0-cp311-cp311-macosx_11_0_arm64.whl (366.4 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

adbc_driver_manager-0.11.0-cp311-cp311-macosx_10_15_x86_64.whl (455.0 kB view hashes)

Uploaded CPython 3.11 macOS 10.15+ x86-64

adbc_driver_manager-0.11.0-cp310-cp310-win_amd64.whl (540.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

adbc_driver_manager-0.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

adbc_driver_manager-0.11.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

adbc_driver_manager-0.11.0-cp310-cp310-macosx_11_0_arm64.whl (365.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

adbc_driver_manager-0.11.0-cp310-cp310-macosx_10_15_x86_64.whl (451.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

adbc_driver_manager-0.11.0-cp39-cp39-win_amd64.whl (542.3 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

adbc_driver_manager-0.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

adbc_driver_manager-0.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

adbc_driver_manager-0.11.0-cp39-cp39-macosx_11_0_arm64.whl (366.8 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

adbc_driver_manager-0.11.0-cp39-cp39-macosx_10_15_x86_64.whl (452.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

adbc_driver_manager-0.11.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

adbc_driver_manager-0.11.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

adbc_driver_manager-0.11.0-cp38-cp38-macosx_11_0_arm64.whl (366.3 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

adbc_driver_manager-0.11.0-cp38-cp38-macosx_10_15_x86_64.whl (450.7 kB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page