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.10.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f24e5fba2d7821ddf2fbc47c114b6585e04c202b2d7aba19336c2658b1f0805 |
|
MD5 | f27e42e22ca81a55039d62bf3e832c2b |
|
BLAKE2b-256 | 1c72a5f3dd207477fd3f86595273f06a47a1172c1d90f685a31a72bae7189e8e |
Hashes for adbc_driver_snowflake-0.10.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7376e9a54703109e17e2389780cbd8ebd80cf7ad236d2da1e9207e1614cc4805 |
|
MD5 | a8b72255bf3803e385b51e7313024183 |
|
BLAKE2b-256 | dc81f93d8a400b02dce911b4ef55b14f1f31835ceeed2261f666068d3c828826 |
Hashes for adbc_driver_snowflake-0.10.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0f5eba0e2a114265f940a7e29955848e94b3e35e3492087984954e5fb89f1ab |
|
MD5 | 047429af4cee50b8747c748219e14a1d |
|
BLAKE2b-256 | 6f98b7626e8d11c1a3291c537a15c30af551456de8b0c059dde046035fbcdc53 |
Hashes for adbc_driver_snowflake-0.10.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5332ca08dd1ec57c283a15f94d18b093d481def9f56bceb402067197d297cb3a |
|
MD5 | fecf5a21a7f6ec70d510472309ecfb1c |
|
BLAKE2b-256 | 4595c53b84f99b35540f30fbe06f9677dff608a95e7271e0b29504ff756f504d |
Hashes for adbc_driver_snowflake-0.10.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c866fe65be3e16fb0c43e134dd2f17519dfe93c762968941047d6a27faa4b983 |
|
MD5 | 5616dc5286e81e5b5d58a374e902c036 |
|
BLAKE2b-256 | 93ed33ed812aafe7d464bbbfea8f5586c07ec125c68e18b9777ae2f49ecb6bf8 |