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

Uploaded Source

Built Distributions

adbc_driver_sqlite-1.4.0-py3-none-win_amd64.whl (863.5 kB view details)

Uploaded Python 3 Windows x86-64

adbc_driver_sqlite-1.4.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.4.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.4.0-py3-none-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

adbc_driver_sqlite-1.4.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.4.0.tar.gz.

File metadata

  • Download URL: adbc_driver_sqlite-1.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 957171d87e28a917c6b22a558ef226beb7490740813609e77bf37098c60d53bd
MD5 b14fc13bb5dc9169c895e949feabe8fc
BLAKE2b-256 0e130a5ab8ecebbe13b1abd3e4bdd966250685d63a9c066bd56f59e3a9488bea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.4.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0a22cd5c442f31a87727ba62fb6137f08df54774a25e355e7da06617ecf56b6a
MD5 3a1629d35cbd5880b17bf55b528327c5
BLAKE2b-256 09f20d250000bb12d0c37a010d26260893624b111fdfe3bd407e5fa369aea90e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f111e982a0816c1f6471c32b87fbfdc21431d46004be301484047acc62d5b07e
MD5 811f59ed5fe9c6a5fdbb929624defd33
BLAKE2b-256 d796b387c1e47a263e315861eed4bc1680ded534b4e220c365d5804364852add

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.4.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 30f8d658343923a10933ca9657f6373e7fb5e6e05891ec70bc27a719160f0484
MD5 136610448718ae63f2687aa8d7bc5d30
BLAKE2b-256 d19c3e421bde3c6501c0298f13074055935a64a16d0dae4b83e01e70a4bfbd0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.4.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f602528ee8c2ef78f8e7ad409d37bbbc604ca404ad93e5b52685d32c73b6e00
MD5 8609d13fedd119295f66234999b82097
BLAKE2b-256 8a71b726710e0c111324d4331c2ce272f65eb71642e37118e52892d148d38a10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.4.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 9754f956ffb9749a19365bd6749f0f6e8ec82387d85ea66c08455e443095878a
MD5 9f76b8025dbc4b33c18dcd4f98f32168
BLAKE2b-256 ae7611efcc31e2851a60246995abe76419c1b81ad0c7cada35635c89fecee734

See more details on using hashes here.

Supported by

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