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.0b3.tar.gz (1.1 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.0b3-cp314-cp314-win_amd64.whl (11.9 MB view details)

Uploaded CPython 3.14Windows x86-64

snowflake_connector_python-5.0.0b3-cp314-cp314-manylinux_2_28_x86_64.whl (18.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

snowflake_connector_python-5.0.0b3-cp314-cp314-manylinux_2_28_aarch64.whl (18.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

snowflake_connector_python-5.0.0b3-cp314-cp314-macosx_11_0_arm64.whl (10.9 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

snowflake_connector_python-5.0.0b3-cp314-cp314-macosx_10_15_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

snowflake_connector_python-5.0.0b3-cp313-cp313-win_amd64.whl (11.4 MB view details)

Uploaded CPython 3.13Windows x86-64

snowflake_connector_python-5.0.0b3-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.0b3-cp313-cp313-manylinux_2_28_aarch64.whl (16.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

snowflake_connector_python-5.0.0b3-cp313-cp313-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

snowflake_connector_python-5.0.0b3-cp313-cp313-macosx_10_14_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.13macOS 10.14+ x86-64

snowflake_connector_python-5.0.0b3-cp312-cp312-win_arm64.whl (11.2 MB view details)

Uploaded CPython 3.12Windows ARM64

snowflake_connector_python-5.0.0b3-cp312-cp312-win_amd64.whl (11.3 MB view details)

Uploaded CPython 3.12Windows x86-64

snowflake_connector_python-5.0.0b3-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.0b3-cp312-cp312-manylinux_2_28_aarch64.whl (14.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

snowflake_connector_python-5.0.0b3-cp312-cp312-macosx_11_0_arm64.whl (10.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

snowflake_connector_python-5.0.0b3-cp312-cp312-macosx_10_14_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.12macOS 10.14+ x86-64

snowflake_connector_python-5.0.0b3-cp311-cp311-win_arm64.whl (11.2 MB view details)

Uploaded CPython 3.11Windows ARM64

snowflake_connector_python-5.0.0b3-cp311-cp311-win_amd64.whl (11.2 MB view details)

Uploaded CPython 3.11Windows x86-64

snowflake_connector_python-5.0.0b3-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.0b3-cp311-cp311-manylinux_2_28_aarch64.whl (13.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

snowflake_connector_python-5.0.0b3-cp311-cp311-macosx_11_0_arm64.whl (10.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

snowflake_connector_python-5.0.0b3-cp311-cp311-macosx_10_14_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3.tar.gz
Algorithm Hash digest
SHA256 710aac1bf25875865713a6fae8047588644b8b64672969ac54d0ea3ac126eb39
MD5 3dd321e6ed2d150a01a49d930d869b8d
BLAKE2b-256 b64c0cfd2575503f5701954e4f3d6e58cb7c4af241c3936f25fda119bc58abd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b86941176d8f12f9b22cde8ba42a796d15414136cb5d1a5d17c361a79bd98563
MD5 3433f468f3806df03c87d7eac5fa9425
BLAKE2b-256 01894d6489663a92ac7e33202bb2a4ee46f70a7d2750acac5018fb896170c378

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 546dba8dc0fe01a8e9c168e4d3a054ce4c56c6eb47a5b64eb6a855099375a81e
MD5 afea85b1fdcb645f54d9e832d5611dae
BLAKE2b-256 1f1b8cffe2576d530ccdd09d820ee49c4361d808ce5c607a6a6973cccf566292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 15db3435c98906dbf396f78df9fd26cb43432c41b01cda6f18d154fd228151aa
MD5 627499be616d3182f999817c4ab3c09e
BLAKE2b-256 79df2462eadb1496b8a7341346af258f7713e286439271b5b80ea930cc02e494

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b975104d661624971e2485728cf9363b18ca6c0157617f7f3644fdb2f229ef44
MD5 a72e36e2d77e1d5bd385c301486b5d50
BLAKE2b-256 8130c634d826134e8f4f1020a1ee9a95b6cef80a0c2288388c5dcd9ed34b5d19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 16743d993505175e523afb8ae5225d3051c472b6b2e886e1e96551db7e618aa4
MD5 3527c62c695dc8f67c42668c066169cf
BLAKE2b-256 9e222e3afb99bcfb3aee16f6207446f508a38329b337d0251c6edbe9064830fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 afdac9a1746feb1dd6db78648999677c258c45153088acdfb458f3f948b69fb4
MD5 e5c7e276f92d8b2aabd9639d45afc024
BLAKE2b-256 ab283910ffe209c4579b68adc885ef7731d6d5b432c7180dff6894958ba43db6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 db76d09368309f5f99920529e88c3f83d84c71582353b114c37f4dad1578836e
MD5 7dc0b7023a6b29e1dfc61ab3a7681e02
BLAKE2b-256 ef9bc3a8b5648c73f628a5a037513efca9e723987fa58c847d6a543aac30f47b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8944b2c43d12df72d1c0cbf4aebe74c285eba0b78cfecf5e961286e5850be935
MD5 f28b1f9f98d6eba023b090c31e5b18e9
BLAKE2b-256 83460aa5d0dc73f6e3af89a69e83f1d5f68048ad2ea425ca972769d249a34c8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5595beacd91abaf3360510923ca45303ffce94ec9fe6a6726195d0887449a140
MD5 74386cc5fe286b186da142c73d0af2ea
BLAKE2b-256 85bd968a5d9bd93122fee4e431f7a12eaff09bd68aa9693896f002d6bb12684b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp313-cp313-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1cdf34bb6e1d033d060a8187dd0094321268f2e3b8c31bfe6fb66a7a9c59159b
MD5 3e7ab524c0176df9a080cbb96709ca39
BLAKE2b-256 fd087c30ebcac0de9e709551c94f261f75db571d1aa514d79bf2dd9e68a91e57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 779b290ccfed3c64f059b696010908ae892f2c05d82031f52ff9840808cc2b65
MD5 5652af26bcb2d82a1db79c08d13430b6
BLAKE2b-256 2a2825c4ece3685b0147d51beccd62e4916ca48705e07006d9955cc908c8f5c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0916bf61ea98cc0e7f12d552db7c66f246c2e62913d4e6c4a0f6991ad7e4ca8e
MD5 a0b53721ce6abf58890f6904b9144c46
BLAKE2b-256 bb9d21b26083d74ae99cbc6815be11072e87a2f90e9cf2c6ec78c62fcceb59aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd8bbacc1aa726ac3233978c2170bb2c59c76259994d8f6ade5be073f3ba01ee
MD5 41fbd924a67f569f5ec96bc05e50bd25
BLAKE2b-256 4f0f4e512ff6660a292baeddfbef525f1bcf8e058c22ebbef0c92dd1eccb77f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 016faf4a897b3ab905d46aaed0ba78606924bd168ceccc2871a8adee4ae20733
MD5 fdadc69190996161f9ca5d838372fcb7
BLAKE2b-256 12cecdf7a4b00a5478c6c0f43305020fdad91eab67a4e9d1af51d8215fec202a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 448c2daf8b63e4b175564036e0a0d3080ea49f9ff33a4628bf29d2bd9ba3af7e
MD5 1e342d7529e21d63c95be20c63e78f4d
BLAKE2b-256 eb1e9ecc1a995f2c48e1be69daa4bebf2e8215fb75dcf66af73a5238be9bb2d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1a9a6c17b04b6cb917d228356e4075915a66495dea716049b2b8e18bc61e8a70
MD5 12f3250d60bc98f8740df402d867009b
BLAKE2b-256 571f68434bfae75621a55f6d8ff5e13680750ee579e2a3cc0e3c2f41edd331ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 0dd499f91c00c729ff23bc069c3ed919e2d3d7965b21f1401a3063cf055927db
MD5 850e8535c1fee68ecd6c08a044305d79
BLAKE2b-256 851ede8685c66d758329dba7554fc1314c4638a7a50f17210476fd343f26e610

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 625db840fbc019e2763badd17ac83a1c1372183bbc95c3f452caa69c23fb3e47
MD5 e45c3cd4f4a33891b9dda683a732f027
BLAKE2b-256 3b4112c223139bd27e139095815377452525e9aaef2426dc69761d2a19725026

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 632a72c356d480b6d6eb85c7dbf9d236b56eed46839fb601cef182cd25e16ee7
MD5 995c36961fb838b0ddec349921b2b70e
BLAKE2b-256 e6dc7e1dce2806f62e9e817212b955d26a0b8e9cd22b1d5f76e2bd8733ff8735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4a7aceab78f2d94a5e94494f3c0b302f4a938b1fab1e8d7d3b04207a605cf283
MD5 d2bcbc91197eafba56bf493b5f4f10e4
BLAKE2b-256 897653598da0416e754f912c9dea8101b053a3e761906e8979569e0ec8470d12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10df5b58bfefbe2e4fb26dc37e9f96eab6ed2280b9d032ae3c2a90fb8abd31c0
MD5 cf6284b44f82c42f7f5abdb8d6ef6fa3
BLAKE2b-256 0b974c445df247932d016c25acb3d4870783c55bffa45d1b07f8a0def0974d35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snowflake_connector_python-5.0.0b3-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 a96c3e86b9b7f8d5afcda5796299386885ca5a64d6e9f134644c66c40b383fbf
MD5 fc6d84e05b0da59ba6a29fc4ce74ad8c
BLAKE2b-256 780ebad68193ada7a7f2032cedfb353d343ce31af07c15147e95214ef06ce5a5

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