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

Uploaded Source

Built Distributions

adbc_driver_sqlite-1.3.0-py3-none-win_amd64.whl (863.0 kB view details)

Uploaded Python 3 Windows x86-64

adbc_driver_sqlite-1.3.0-py3-none-manylinux_2_28_x86_64.whl (953.7 kB view details)

Uploaded Python 3 manylinux: glibc 2.28+ x86-64

adbc_driver_sqlite-1.3.0-py3-none-manylinux_2_28_aarch64.whl (916.4 kB view details)

Uploaded Python 3 manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3 macOS 11.0+ ARM64

adbc_driver_sqlite-1.3.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.3.0.tar.gz.

File metadata

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

File hashes

Hashes for adbc_driver_sqlite-1.3.0.tar.gz
Algorithm Hash digest
SHA256 0c2b50d5f773aae46fd63f62362520b733418719bd2f04f82775db79f5d70146
MD5 6d61074be115c41bd049909e62b6940f
BLAKE2b-256 9a705c02d28accd174b804332fe412eb2c16629c832807d1fa9e9ef5c619353a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0359815f5d351e472cfc56edb1d9bbf511b993ea7cddc48075e494369c2f978f
MD5 1921fb01be7ad0c735bcd1adade71330
BLAKE2b-256 11d815a7386d796ed870f84bc7babc4eb669c5949fc9ea12c2ca87f3f48ffeca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.3.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0a6968d01f7b97e4aa7a15d7e280693a46fc429c74b32108eb04533a4c77af3e
MD5 45676e3be7496c75d2fe31145c9c1a0e
BLAKE2b-256 e654bb51e78fdcd4c7088b71764eecf337cb1534b49c73e991a02f5d12343cf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.3.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1f0314b1e58bafe1643ec41b149ef11ca319bc733c003ea148939d0f4a54c5d2
MD5 48786beb01e06b5369d6db974e176618
BLAKE2b-256 5eb7b863ecea1ed97a78e8f1ded055c3779533a22420126bba394b89b9cc9283

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.3.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9fd10454bea26bc34fb114c5449d09084451b5bb06b9f98c73bfcac795dc823
MD5 a21b8f68135c051a827908f9815cab51
BLAKE2b-256 f54daee53789b191bd053da16a0d5381d10bacf449568a7463ca2d02afd2f4ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adbc_driver_sqlite-1.3.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 6a4348fc23913c34232bc32732785f1378f98a2b5aa1882a41210ce4b7af90c4
MD5 4187b6c2a4d6438041d29f30de81de75
BLAKE2b-256 bcfcfd9b63d5457696a9d2322a6be56dd505f7d80f3fc5e3a6151e93ad5924b7

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