Skip to main content

An ADBC driver for working with SQLite.

Project description

ADBC SQLite Driver for Python

This package contains bindings for the ADBC SQLite driver, using the driver manager to provide a DBAPI 2.0/PEP 249-compatible interface on top.

Example

import adbc_driver_sqlite.dbapi

with adbc_driver_sqlite.dbapi.connect() as conn:
    with conn.cursor() as cur:
        cur.execute("SELECT 1")
        print(cur.fetch_arrow_table())

Building

Dependencies: a build of the SQLite driver, and the adbc-driver-manager Python package. Optionally, install PyArrow to use the DBAPI 2.0-compatible interface.

Set the environment variable ADBC_SQLITE_LIBRARY to the path to libadbc_driver_sqlite.{dll,dylib,so} before running pip install.

# If not already installed
pip install -e ../adbc_driver_manager

export ADBC_SQLITE_LIBRARY=/path/to/libadbc_driver_sqlite.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_SQLITE=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_SQLITE=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

To run the tests, use pytest:

$ pytest -vvx

See CONTRIBUTING.md for details on the general test process.

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_driver_sqlite-1.10.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distributions

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

adbc_driver_sqlite-1.10.0-py3-none-win_amd64.whl (960.4 kB view details)

Uploaded Python 3Windows x86-64

adbc_driver_sqlite-1.10.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

adbc_driver_sqlite-1.10.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

adbc_driver_sqlite-1.10.0-py3-none-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

adbc_driver_sqlite-1.10.0-py3-none-macosx_10_15_x86_64.whl (1.1 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file adbc_driver_sqlite-1.10.0.tar.gz.

File metadata

  • Download URL: adbc_driver_sqlite-1.10.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for adbc_driver_sqlite-1.10.0.tar.gz
Algorithm Hash digest
SHA256 064ed5f1372578d2063cd920514cd2597c6a6db3b0163c2116e373faeedffec6
MD5 53b7dd80a3da863422436d38c2bd8f72
BLAKE2b-256 7234f4924d98a340835988f135303c7e562f7a388308a3fbb949f357bcb94b04

See more details on using hashes here.

File details

Details for the file adbc_driver_sqlite-1.10.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.10.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c6adfb5a934cd1573076fdd71b03492140c8563b6a0d9d2d46c7e718e736b3e0
MD5 4caad8cde49efbf74ec7ac96417007eb
BLAKE2b-256 9146bea7cfb4b0779ff67a40833c652b15e702c9e5d1232aff96e577211eb60d

See more details on using hashes here.

File details

Details for the file adbc_driver_sqlite-1.10.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.10.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 435cbf57c42e6c57762f6998041a8129ddf7a3f0b407712cbb62d46e0729a450
MD5 4bd46b1b7ff09621b09b38cc932a1a89
BLAKE2b-256 bc887f900b29099764307d1c9816c30b05d0076df120a7ca57c759b3a7a5e82b

See more details on using hashes here.

File details

Details for the file adbc_driver_sqlite-1.10.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.10.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 1f8fa45ca274502e145a0fd43af5253f508fe2c17e82857a898392abeb577588
MD5 1b8c8234d53178254a613780d80039fd
BLAKE2b-256 c0f071d53fc347b3a598c3f1f562aad7be1e4548c55c06ebda7c6e1ae04f7695

See more details on using hashes here.

File details

Details for the file adbc_driver_sqlite-1.10.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.10.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1de3fb50a3a4bcad1b097d3805b41681226a5c35ccc625637a8dfb87fc4123c1
MD5 2aa79bd9dc0563beeb8589aff634301e
BLAKE2b-256 c8a5968f2031dd97b7907ccfd90b28de3629ce7f31cfd8041e1f509cb1e30a28

See more details on using hashes here.

File details

Details for the file adbc_driver_sqlite-1.10.0-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.10.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ebef54331c006a42adbe0510ae0f9b3a37fd5e1819214e875fe36a72ce7bf883
MD5 c243b9fe39d1a228a9053555866c6d49
BLAKE2b-256 d1d0e7b0632d3098a209a4700cf75e69dcecfea8e4de369b2b07431a10195234

See more details on using hashes here.

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