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.11.0.tar.gz (28.9 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.11.0-py3-none-win_amd64.whl (1.4 MB view details)

Uploaded Python 3Windows x86-64

adbc_driver_sqlite-1.11.0-py3-none-manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

adbc_driver_sqlite-1.11.0-py3-none-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

adbc_driver_sqlite-1.11.0-py3-none-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

adbc_driver_sqlite-1.11.0-py3-none-macosx_10_15_x86_64.whl (1.4 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

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

File hashes

Hashes for adbc_driver_sqlite-1.11.0.tar.gz
Algorithm Hash digest
SHA256 a4c6b4962610f7cd67cd754c42dd74e18a2c11fabeec9488c5501d73ae62dc62
MD5 de2655fdb974e6a6f01038c5df951f59
BLAKE2b-256 3add8a5f4908aa4bdec64dcd672734fa314d692517458ce169591639d0123fe1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.11.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e41246c5bf929bb5d768227606eb10add420171134ae6ba7928136376f5842fd
MD5 fe079d80034cf6f015583c2322d7db9f
BLAKE2b-256 0a35d189ce413bdeda6dae71eaa1effd96ec0a2f82ef0a1693e20a36a7082504

See more details on using hashes here.

File details

Details for the file adbc_driver_sqlite-1.11.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.11.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2bcab0cfe9380c1691cf995430f8b0b56bf8b9875d8fd9d69a5aecf2b72159e6
MD5 c13d1138e6f7e8bbdf41be88a4f213a4
BLAKE2b-256 0905a2dec7d6e4300f3c81b75d727007a146977f018765c8b0607ed49b28e0dd

See more details on using hashes here.

File details

Details for the file adbc_driver_sqlite-1.11.0-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.11.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9c28401c31d775d5506ed1188b73de9f7ed1a292927157f2171c7dca67f6cb9e
MD5 c55b0cda1d9053c5d954b1648a586cb6
BLAKE2b-256 52aaab2373cdac52ebcf42fd6cc80f9cdb7b98416ff15f6cd340aa4cceaf970e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.11.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98fd35e14c85e44eeffae1ef9a56466169719ad7bd15e314c2ff88c342e50d9d
MD5 f2aa52b1883762f09480ded022fb8e09
BLAKE2b-256 bdf426da6de1ff772bfc95c2257a0d9e7b7d1d3525e5170f6d67d715138e6690

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.11.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 d227ab10a56b0b5f106d9f85f3f8bce8b75c2b34a28ad962b71e8a3a0b6dc0ed
MD5 7df849a6f6a254985569ae56e39540e3
BLAKE2b-256 fe5bf03b0b654abb679066da022d064b083752d3df6b4e0c9e8f451a1aa82f75

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