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 Distribution
Built Distributions
Hashes for adbc_driver_snowflake-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48f320bd6fb1ba35f007ca47ef97cef4c4b84401e3cc88567f577d434b118b32 |
|
MD5 | f4fb7e51c54d49305d5d70cfd9923204 |
|
BLAKE2b-256 | ed8f05d4fb240ca21dc236509d5aca10e56949c0d0f1e8767a7142b887074919 |
Hashes for adbc_driver_snowflake-1.0.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5256020659e6b93ac975cadfa8c8b095052550cf6e9162c5fe0346e518ba3a |
|
MD5 | 568ab6f3635f11efcc7617bc66893885 |
|
BLAKE2b-256 | a30a6f9874d2167eb2929315de81cb2834cc83f8a45f5dc7cfa1fbb50f26a00e |
Hashes for adbc_driver_snowflake-1.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 297d35c9eebea6b9d8ba6122055f8d3b864ea7dfc4e2cf7cf48a47c03fb0e546 |
|
MD5 | 0db8d4924229ef973bf268674ea3a583 |
|
BLAKE2b-256 | fa9c6e053406eadf0db58db84e5a9d77a26f7dc4e2a42340b4632bbcda7cb4be |
Hashes for adbc_driver_snowflake-1.0.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 547620e5d189c5ae414744f6b5c5c04034da8f8b5b1e66d9ea441a6c59b57443 |
|
MD5 | 72c70450058e494c0f719402383ed28f |
|
BLAKE2b-256 | fc19f27401ab10fb67b881632abd15fcc1821c9248129d7f7aaff7dd37ee2551 |
Hashes for adbc_driver_snowflake-1.0.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c9b2eda8d80854c4705961ce000d4ab960279d9424382ca9c51c5e5e82947b |
|
MD5 | 964a24ca8dd1d748d7ed2404943f3729 |
|
BLAKE2b-256 | 29c139ae21e912860a11d89e330312729f364b9cc684dfcae8568de6049a78b0 |
Hashes for adbc_driver_snowflake-1.0.0-py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23fe1a6ddeb09018c195d331d2c52627f7a004f76420a7e0ee29bd737554160a |
|
MD5 | a414c5965f41363288b0b0832b72d0c6 |
|
BLAKE2b-256 | cb208117e6f107ac4ea33f5189d5e3cbdd4ba4f2fd7c0a0e3aa38ff50ee07e50 |