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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e983466a61742f5edddfad06f4d418a13a791590c94c80e38528a732a4aec0 |
|
MD5 | 6ebe313df8af6f4c8b64206addc9eb27 |
|
BLAKE2b-256 | de3f1a67c7ac5e9b9af1b394388647840a4b7f3d5172ee849799ac49c58993a5 |
Hashes for adbc_driver_snowflake-1.2.0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0400cb85057a5ab8e4f9a653ec6fa51982324d8e3cc92ba86e9d6e00ba70a500 |
|
MD5 | 70d7136af46460ab2d3fa5b65a284b02 |
|
BLAKE2b-256 | 0d210266ee9f4021bb3d9bc78b06462c15a83b404736b07fa61b1984aeeaf463 |
Hashes for adbc_driver_snowflake-1.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4aaa33c9f6889c2131e2b50fa226e1075b8a91caef0ceb3587ceb7fafd7c64 |
|
MD5 | cd82a69d5e48c23388d6fef7a3c2de8c |
|
BLAKE2b-256 | 747f63d43ea38c045a9f29eb8077e52fb2ee525143c846ac1ec8b7d4bd239eec |
Hashes for adbc_driver_snowflake-1.2.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dd5f9c732c6b18220c1853f81b5820bd75dbff502c0f026e719e97e291054a0 |
|
MD5 | d8b1907cadde838e53a98ea293a82261 |
|
BLAKE2b-256 | 59cd851d3c2c1ca21185cccfa1c9884715fd239df012561f7604102cd2d0dd41 |
Hashes for adbc_driver_snowflake-1.2.0-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2c52ad76bfd68da1b486f2f32ab65dfa5d6484b9753119e0ebb9037504b6116 |
|
MD5 | 53a626d291f4c38e8b9013847255714b |
|
BLAKE2b-256 | 08262c233526e5fe8beb4de92342fe7032cc7d857091fa1bcd31f4f0dec4a349 |
Hashes for adbc_driver_snowflake-1.2.0-py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90da499322c4376cdb30e5ff2d9ad0f3cb3d175f872da030f9eaf8881665892 |
|
MD5 | 51d79d10ac4a8fcebcb9696841d14582 |
|
BLAKE2b-256 | e28ef929280c1d97f4b1219e5e30cf4862118bdd5e267ac9fb0d6a5d3bc55bb0 |