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.12.0.tar.gz (12.8 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.12.0-py3-none-win_amd64.whl (1.5 MB view details)

Uploaded Python 3Windows x86-64

adbc_driver_sqlite-1.12.0-py3-none-manylinux_2_28_x86_64.whl (1.5 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

adbc_driver_sqlite-1.12.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.12.0.tar.gz.

File metadata

  • Download URL: adbc_driver_sqlite-1.12.0.tar.gz
  • Upload date:
  • Size: 12.8 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.12.0.tar.gz
Algorithm Hash digest
SHA256 18466a2f0c14f94cb0b17818157cc14ed6b93aef0a48ef648de945e9bac1540d
MD5 b9a29200406f89836509f5c01bae3a95
BLAKE2b-256 f5022dc143bdd2a62c52d103d4b0ae491a347944aaed25b3d40fb11797750c70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.12.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0982bfc06158c2140b5c490b1a1325019c827b158f8432a30d49c8a0c18533ad
MD5 bcf3400cc8be0ecc8036f9e706a0b1db
BLAKE2b-256 f4d93245d741936100365ea77c434f84a0985523467bd812e5e11bb9b36d7152

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.12.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3005a80bedf6624c6856da98037ea943a791aa8e82dad458259e0558be32912c
MD5 8594afda436f76be02a78ac8f9e4dd16
BLAKE2b-256 6910a3156f19fadd254a4f58a328a8aa9472c981ff93bb4d23f3c22a4341796e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.12.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c987d03e3f4850e57f218c8a0b9d224209123af642469ee1f36901c5a51725bd
MD5 0520f41babd43609d336e1c31314d5a6
BLAKE2b-256 6c99415bf90eb912403d2d5d0c31baa1cedf200bd510f40027ee8fd3421c4c02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.12.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a81f53791e4aec69afbf8f77dac6acf48749fd84684e86601eafdd36d2eb7c3
MD5 e6e23c0b27569b6e19afcf09d270dbf5
BLAKE2b-256 e6315d1d637e6ae76fcc57d5116d537aa78d2ab687354d5a0b2d527e085b61d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.12.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2d5b3e9d0b5dbc66324b0ccf2ded886e3781f901be986892d319529b05536d3b
MD5 30a375df69eabafa1595b28da2c78230
BLAKE2b-256 a1f7c35740269d3a5e3aa07b9ab155d4e943a7f5267f64d8f7396d5e14184a02

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