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.9.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c5ce7cc76ff395d4968d8274d888977484e16fed5eca6fbcd40ab2d42ef647 |
|
MD5 | 818b2beb303fdab27b5ad114e906b71a |
|
BLAKE2b-256 | fd8e28f9c73d24fcd0a1a8e71594f36aea832d3434ccd04f2ed144dacb2d7c46 |
Hashes for adbc_driver_snowflake-0.9.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de49c0ecfb60c2fabb441ee47fa886707e4fe963d08c6e373bc4d1020b4b904b |
|
MD5 | 90e5d1d4ba07ef5a13bab46fba973c6d |
|
BLAKE2b-256 | 52942d1bf122a6a1941fb33f180dd55dff8a04707337edf08704d5d0c770610b |
Hashes for adbc_driver_snowflake-0.9.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e4a51deb57b0968e34a84cd5558df019ab6d20a8b98c87aab014ab3a7bfd779 |
|
MD5 | 9b9d2b25199f383d9a64599fb5cfd11c |
|
BLAKE2b-256 | 50f7b8138bd2e31f2010b5b8dc83605c1598cf32088da3989472063817bb8508 |
Hashes for adbc_driver_snowflake-0.9.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 743be387cbfbc6740ad1238c9b0ad2ce161e01d50459e5520aed62f710a7c7da |
|
MD5 | 803c0a5fa126ab57d710395e656b0087 |
|
BLAKE2b-256 | a5589014b663f3ff17f43d261ee545a13f5142d682dc62ce0afadc8ff7b6678d |
Hashes for adbc_driver_snowflake-0.9.0-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d690689703b807514dec1604bbcbd6bce2cea65896e1bc1a926e3eb329d423 |
|
MD5 | 465533dca14b7e4f9067808578bb7620 |
|
BLAKE2b-256 | 5086355eba94dc322dae9a512d1df41d00801b400827c3de9e3866307929d0ea |