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.5.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distributions

adbc_driver_sqlite-1.5.0-py3-none-win_amd64.whl (862.8 kB view details)

Uploaded Python 3 Windows x86-64

adbc_driver_sqlite-1.5.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (976.4 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

adbc_driver_sqlite-1.5.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (955.0 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3 macOS 11.0+ ARM64

adbc_driver_sqlite-1.5.0-py3-none-macosx_10_15_x86_64.whl (1.0 MB view details)

Uploaded Python 3 macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: adbc_driver_sqlite-1.5.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for adbc_driver_sqlite-1.5.0.tar.gz
Algorithm Hash digest
SHA256 bfb401e9bf3532977a4631d28bbff3114c056ef270acf9c038891af81e4d5295
MD5 a2642a71a59846961b4bf4217803c1a0
BLAKE2b-256 5a8f41c7abe718e95dfbd443c5ca5de11b5c0b5be4f9e451dcb1367eca1f077e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.5.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f6ef2e77e8221f243f86b490059c1c25ba1e5c875662287aba15a40f8297d323
MD5 69eecc7627eabb9345a8b4245616ecd8
BLAKE2b-256 bbf14ca555bee7f80d8bd74bfeb61462e8c273931f588bf5fdc98ffffa025b6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.5.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d91359bdd27a198472374583bd7e0a76d9a1f3973fa6671168e43c80665bae2
MD5 b30bdfa8d70d5915f56e6af46128a642
BLAKE2b-256 83e3d26f2e9b02544b51d30f3d6217597a3c1ae0e93b47235bc1033f91ebd024

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.5.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2ea30d29b402b259556045f61f9775fb75d86fbb74c8742ff7452545bc7fc1a6
MD5 5b4249c9fa4e9db9bcabec96e71f9c9e
BLAKE2b-256 2d903e4f4bbafaf67266e56a503bc4f706370ceb3ff0b3b1cb75dc7126f74d7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.5.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a09f4bbd8eeebc8793603ec8462defb0d85dcbacffbf036d94cd1357bcecaf68
MD5 5339185d18d42676ce14bc13e2035f1c
BLAKE2b-256 0f8dd8f7d5681309e18f6a7e964aa3c8d3012a84923b5a7e14175011f67cfb4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.5.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 4d58a5907903eb43fc6aa3d30da172b85670d1400af00a34e835071ecb8db320
MD5 4fe37d854774f8ba7c1712ac4ae6107c
BLAKE2b-256 59c429fd0540ff4fe0c685e03d032642d4d134c2d156a0b048037633fe80a0a8

See more details on using hashes here.

Supported by

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