An ADBC driver for working with Snowflake.
Project description
ADBC Snowflake Driver for Python
This package contains bindings for the Snowflake driver, using the driver manager to provide a DBAPI 2.0/PEP 249-compatible interface on top.
Building
Dependencies: a build of the Snowflake driver, and the
adbc-driver-manager
Python package. Optionally, install PyArrow to
use the DBAPI 2.0-compatible interface.
Set the environment variable ADBC_SNOWFLAKE_LIBRARY
to the path to
libadbc_driver_snowflake.{dll,dylib,so}
before running pip install
.
# If not already installed
pip install -e ../adbc_driver_manager
export ADBC_SNOWFLAKE_LIBRARY=/path/to/libadbc_driver_snowflake.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_SNOWFLAKE=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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for adbc_driver_snowflake-0.11.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11f3d56def4462b38a0c1b426fef7d3d2d2978cd5748c78f3d030a388369fb64 |
|
MD5 | 0ac3d494a16e4567088f925275ff6196 |
|
BLAKE2b-256 | dc77d5b399200569e2c450320c8a67bf9b3c402869877e469fa09bb5be23eb8d |
Hashes for adbc_driver_snowflake-0.11.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4351bf7dc79d1abe1754b6d56e3e897dddd42fc463d9b512b9aed88a7b9fa6c |
|
MD5 | b67c35df660ee024a70f957054b93a3e |
|
BLAKE2b-256 | a24023106440fc26f15a2522ba50554cff8044f566d30b2e85bced48b54dfb54 |
Hashes for adbc_driver_snowflake-0.11.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 764db68ae6664584bd14580cbf025992b869e52d00eef852d25f53e93c66d10e |
|
MD5 | 4eb21d9480f044ff3d7d799ef9b3c060 |
|
BLAKE2b-256 | 3a8da6fb6bad8751fb681f499bea2fae4743bc9f9afa46d09dc0489a3cf4a3c2 |
Hashes for adbc_driver_snowflake-0.11.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 125f9e25679acc6a42cbe5d7dfbb6888f42d3e383e035d5ab71c0448fbe12e8f |
|
MD5 | 6c21373172656925a7d52c286df20b97 |
|
BLAKE2b-256 | 5672c384d6c498bdb889db8778ffe17a2b5669ad2d8b18bff0541954a999e806 |
Hashes for adbc_driver_snowflake-0.11.0-py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8edfa1a7781552639e58b13f961fc05668bbe7b6dfd28b79cf4684ac0f783c0c |
|
MD5 | 5b4ad7cdd8e12d46f0df42daebab229d |
|
BLAKE2b-256 | 58dbf713d85daa51c5294207c7148e84edac1cb22953a5c96d583fc00b99ac30 |