Skip to main content

Snowflake DB driver for Python (Private Preview)

Project description

⚠️ PRIVATE PREVIEW DISCLAIMER ⚠️

This is a beta version of our Universal Driver intended for Snowflake customers who are subject to Snowflake's Preview Terms.

This driver is not ready for use with production data and may be unstable. Please only use it if you are actively participating in the Universal Driver Private Preview.

Development

Prerequisites

  • Python 3.10+
  • uv package manager
  • Hatch build tool
  • Rust toolchain (for building core library)
  • Credentials: ../parameters.json (see main README.md for setup instructions)

Setup

Install uv and Hatch:

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install Hatch
uv tool install hatch

Note: The Rust core library is built automatically during the build process via a custom Hatch build hook. You don't need to build it manually.

Environment Variables

IMPORTANT: Set up required environment variables before running tests:

export PARAMETER_PATH="$(pwd)/../parameters.json"

Hatch Environments

This project uses Hatch to manage development environments. There are two primary environments for running tests, each designed for a different use case:

dev Environment (for local development)

The dev environment is designed for human developers during active development. It installs the package from sources in editable mode, meaning any code changes are immediately reflected without reinstallation.

Key characteristics:

  • Installs from sources (skip-install = false)
  • Editable mode enabled (dev-mode = true)
  • Changes to source code are immediately available
  • Supports Python matrix: 3.10, 3.11, 3.12, 3.13, 3.14

Usage:

# Run all tests with the dev environment
hatch run dev:all

# Run specific test types
hatch run dev:unit              # Unit tests only
hatch run dev:integ             # Integration tests only
hatch run dev:e2e               # End-to-end tests only

# Run with coverage
hatch run dev:all-cov

# Run with specific Python version
hatch run dev.py3.12:all

# Pass additional pytest arguments
hatch run dev:all -k test_connection --maxfail=1

test Environment (for CI/CD pipelines)

The test environment is designed for CI systems to test the end-to-end software development lifecycle (SDLC). It does not install from sources - instead, it expects a pre-built wheel to be installed, simulating how end users would install and use the package.

Key characteristics:

  • Skips source installation (skip-install = true)
  • No editable mode (dev-mode = false)
  • Requires explicit wheel installation via install-wheel script
  • Tests the actual built artifact, not source code

Usage:

# First, build the wheel
hatch build

# Then install and test with the test environment
hatch run test:install-wheel
hatch run test:all

# Or with specific Python version
hatch run test.py3.12:install-wheel
hatch run test.py3.12:all

Environment Comparison

Aspect dev test
Purpose Local development CI/CD pipelines
Installs from Source (editable) Pre-built wheel
Code changes Immediately reflected Requires rebuild
Tests Source code Built artifact
Use case Developer workflow E2E SDLC validation

Other Environments

# Code quality checks
hatch run precommit:check        # Run all checks (format, lint, type)
hatch run precommit:fix          # Auto-fix formatting and linting issues

# Reference connector tests (for compatibility testing, installs latest v4.x)
hatch run reference:test
# Pin a specific version if needed:
PYTHON_REFERENCE_DRIVER_VERSION='==4.3.0' hatch run reference:test

References

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

snowflake_connector_python-5.0.0b5.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

snowflake_connector_python-5.0.0b5-cp314-cp314-win_amd64.whl (12.3 MB view details)

Uploaded CPython 3.14Windows x86-64

snowflake_connector_python-5.0.0b5-cp314-cp314-manylinux_2_28_x86_64.whl (18.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

snowflake_connector_python-5.0.0b5-cp314-cp314-manylinux_2_28_aarch64.whl (18.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

snowflake_connector_python-5.0.0b5-cp314-cp314-macosx_11_0_arm64.whl (11.2 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

snowflake_connector_python-5.0.0b5-cp314-cp314-macosx_10_15_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

snowflake_connector_python-5.0.0b5-cp313-cp313-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.13Windows x86-64

snowflake_connector_python-5.0.0b5-cp313-cp313-manylinux_2_28_x86_64.whl (17.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

snowflake_connector_python-5.0.0b5-cp313-cp313-manylinux_2_28_aarch64.whl (16.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

snowflake_connector_python-5.0.0b5-cp313-cp313-macosx_11_0_arm64.whl (11.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

snowflake_connector_python-5.0.0b5-cp313-cp313-macosx_10_14_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.13macOS 10.14+ x86-64

snowflake_connector_python-5.0.0b5-cp312-cp312-win_arm64.whl (11.6 MB view details)

Uploaded CPython 3.12Windows ARM64

snowflake_connector_python-5.0.0b5-cp312-cp312-win_amd64.whl (11.7 MB view details)

Uploaded CPython 3.12Windows x86-64

snowflake_connector_python-5.0.0b5-cp312-cp312-manylinux_2_28_x86_64.whl (15.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

snowflake_connector_python-5.0.0b5-cp312-cp312-manylinux_2_28_aarch64.whl (14.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

snowflake_connector_python-5.0.0b5-cp312-cp312-macosx_11_0_arm64.whl (10.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

snowflake_connector_python-5.0.0b5-cp312-cp312-macosx_10_14_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.12macOS 10.14+ x86-64

snowflake_connector_python-5.0.0b5-cp311-cp311-win_arm64.whl (11.6 MB view details)

Uploaded CPython 3.11Windows ARM64

snowflake_connector_python-5.0.0b5-cp311-cp311-win_amd64.whl (11.6 MB view details)

Uploaded CPython 3.11Windows x86-64

snowflake_connector_python-5.0.0b5-cp311-cp311-manylinux_2_28_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

snowflake_connector_python-5.0.0b5-cp311-cp311-manylinux_2_28_aarch64.whl (12.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

snowflake_connector_python-5.0.0b5-cp311-cp311-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

snowflake_connector_python-5.0.0b5-cp311-cp311-macosx_10_14_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

File details

Details for the file snowflake_connector_python-5.0.0b5.tar.gz.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5.tar.gz
Algorithm Hash digest
SHA256 deb5ad7df576bcf8884ba1ea9bb0106a6dde7b04f2e20f94ec595bab684d4113
MD5 fc73819a5aa18d07e3ee3a6d25d5ae1a
BLAKE2b-256 b6dcda5987cd54161a4df1f971b4daf2e4f7a478d85e6e385bb109c05b7b565d

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2534e143c4b6c99986ffb779173a25f624000f116daf7e0c791aaa637af2000b
MD5 6263c40f9daec06068b3e55001dcdc25
BLAKE2b-256 5bba8cc1fe396c5ced5ec4d22fd781387a7adc6e180f47e0095fb38a961af277

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dca179e657757fc9cf7a6b2dcf7ba0ab8fbebf3b1ff3305482bc848cb3e6a7c1
MD5 865dc7334f7a5d567804d9780aea4754
BLAKE2b-256 f5d4361f93d860846c7db1458d2f6660be672afbd84ba999d016fb73bf02ac06

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 64725baf2e2a05705f280f584b75ebe5b7bba35d5fb5cf14ea23b4b32107ed83
MD5 421c86a4787b52fef472889d7e54222c
BLAKE2b-256 8ff5bccf5ca5d422d16994cc4f6c208b911ca97717e04548cac71702fd39c407

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 935f1b68dfedd8dbda93954441d2a525f30cf806a473e2fe164a3200d4ed3706
MD5 c2e2533620bcc5aae800eae269b2a162
BLAKE2b-256 c032c6dab00b16947873c12aeca6ef7e5a35c50d521037cd1c453b1cbe9c5380

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ffbbfd46e05248f780e32312e45f07d855cc6099e910089af1460262efe3bb0b
MD5 75a86ed99b29380a7618ed8746e737eb
BLAKE2b-256 cf4d045cf5efbfb247d28286ec1d66868a15e1b1a7ef1d71a3ec678fe3f37805

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f666ebb292c71c604f2931367840d6637d65ea6c94756a1c66bc27a1fee79f4f
MD5 8c987142c36659c2615dc00b588ec196
BLAKE2b-256 0e4f4cc93632e22f4b832d23ab47dcca2976dc1482e36b60a3b7bee2e7778d57

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 952d078b87812a8c50a1093a3e4cf152a89cd947662abf49477c2f96ead4562f
MD5 b78e193464a31829751359e259250fbd
BLAKE2b-256 0cb62e7ce50a882a18cbe4faee953ca09ee393e872efbe7345f0e1f867e0bb94

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0c36e3770c25950d233621df3d6d7cd43b65246da85dcd8aad4380ede9507526
MD5 ac1ee8d546826cf91a4d58aa912482b0
BLAKE2b-256 9f747e2bc9be22f94e1a782b974833d46cd08daee5483c2ab725d9fce86260e1

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ab3e75791543e1413ceea6b6a3eaf7c40a59a51cff91362d47d041be89b5d73
MD5 8b83fcdc0a249401ff58e43ef16b6b00
BLAKE2b-256 7e1eb95e6582a75c4aa014b2160025f3e0902515d8da9d677f1a6b66ca88c1a4

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp313-cp313-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp313-cp313-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 99ed59f6b646f4c122bda7a97662afadf5b31dc1c1841c061e67c20cf1f73875
MD5 e8cee8cc1d04273b9a936e685c142f46
BLAKE2b-256 d9f53bfa814ef5089202291306276fb0c7a73498114a43fa332c33472fd24945

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp312-cp312-win_arm64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 2ea526c6c6073ae5fb863b1a71c92a7ebcc9d492cfc45d28638532fb05d85888
MD5 b262782108c69bb3f7c88158c1607674
BLAKE2b-256 879a018314950f9fb7975949cd2fdc65a330f2133ef3a21c13ae5db2be47967e

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c1bf401f865225872155716350d10c82e95892e47f31e8fc41583189d4211e22
MD5 e9034e23e6d098d4f98283a25c134e70
BLAKE2b-256 eb4ac32313dc44018b172be7eebc4c3ee5c76f876b88424d44b0c5bc4db4e48a

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2a411ded46c193a6b913c8f1be344b1b96a564e822986354aaed3ff1dc0e14e2
MD5 21bcc419f1397ed1291301fd2999a606
BLAKE2b-256 26a2825d4c4b153979f1f75b5efd39fcac53e3ef628f89484567d2386f54f686

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 109ba7ba2beb04e1ce3051d93745fa7ae09363d5aa2a9a54cb32647d150a202b
MD5 660dc8c19ed070f85a337075e8317a7c
BLAKE2b-256 41dd457e6e58e08258812f9e3ad1881eb5dddfd3de0a62f049285cb38814ddce

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bef12f4af7b1ef8c500e8cf1c16bd0ba1ed5905d36d49e87cfe0ff2731b178e
MD5 ddae54b7d92e1608066640e7667f3ab6
BLAKE2b-256 f1540c13d437d3bfd82cab1a731d181d99294e0a7e78fb31fbe44707374c4fcd

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp312-cp312-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 40bec387789637a772cf0b1132831626af110361e5704443423967b8c8c028e2
MD5 4cbcf0200ccf4d5fae4572319a13acc3
BLAKE2b-256 6d05f812258588a7f12e425e40c1f14c055e5ad5b627605f3b5840fa4543b59b

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp311-cp311-win_arm64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 d74e00e3a1a3c617892a43dbf2362819e62a9468ab5f709c15372e336e349a04
MD5 6d8c811c31f99bd7e377e26702a22de8
BLAKE2b-256 b4da5313fe45ff6c9b92c1421e3601c00bdd4452cd6de7e2b2abfb2e4fc6d3ba

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 618b42d0ff265bb959ff552bd9bfc85c7fad67afc23e694ceb6b7b77fe496e30
MD5 cd57688cb5ae3e43e397aaa118a00587
BLAKE2b-256 782ad649d23f1dca8ceac13a5d474050e768eb9bc9e1aa50e2a1b9265ecca01d

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0dc167e3722b12b6ff1ba195a9fe05d859d24d6ac17c4d86bb4aa71afafae39b
MD5 8f445c15657edeff8d7d9e34d6a1bc10
BLAKE2b-256 064245788710ad0e177f771371b16142afc1a25c744b62f7edc0536940cbeb2d

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9c0ff88bde3e65e7964f5dfe67e811257c3cd0637bb01a033e31a8882997c077
MD5 d272caa597fdd0c4c5b97f1c20a2f09a
BLAKE2b-256 081936e141b3ed09a7d3630ae7ec9e64fda71bd5920a84c182181607380ef985

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2fb1bd82b355ec4e9e7a9b6ce872fb9529cc83b4e34af935544de6cec1b310d
MD5 cb36c7cf7fb02ca1b92721ffc44ebb99
BLAKE2b-256 c6939d7c25dff0a112f83ec41183e1db277f5cd1aa605a41cce9b1cb7babc271

See more details on using hashes here.

File details

Details for the file snowflake_connector_python-5.0.0b5-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b5-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f1e38c42ac2ad97dc9d410feacd8ae9c19260c74a10440f485e042e0585eb38f
MD5 77a826126ca8c7534f205bd309ff4c47
BLAKE2b-256 55cbf30725e6668d9f9ab66f3bd80ccb4d5f6a84c8df7f9e25171dcfa1dc02c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page