snowflake-connector-python 5.2.0


pip install snowflake-connector-python

  Latest version

Released: Nov 04, 2026


Meta
Requires Python: >=3.11

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: Apache Software License

Programming Language
  • Python :: 3
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: 3.15
  • Python :: Free Threading :: 2 - Beta

Topic
  • Database
  • Software Development :: Libraries :: Python Modules

Snowflake Connector for Python

This package includes the Snowflake Connector for Python, which conforms to the Python DB API 2.0 specification.

The Snowflake Connector for Python provides an interface for developing Python applications that can connect to Snowflake and perform all standard operations. It provides a programming alternative to developing applications in Java or C/C++ using the Snowflake JDBC or ODBC drivers.

The connector has no dependencies on JDBC or ODBC. It can be installed using pip on Linux, Mac OSX, and Windows platforms where Python 3.11.0 (or higher) is installed.

Development

Prerequisites

  • Python 3.11+
  • 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.11, 3.12, 3.13, 3.14, 3.15, 3.15t

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

5.2.0 Nov 04, 2026
5.1.0 Oct 21, 2026
5.0.0 Oct 15, 2026
5.0.0rc5 Oct 08, 2026
5.0.0rc4 Sep 30, 2026
5.0.0rc3 Sep 10, 2026
5.0.0rc2 Sep 04, 2026
5.0.0rc1 Aug 19, 2026
5.0.0b6 Jul 23, 2026
5.0.0b5 Jul 16, 2026
5.0.0b4 Jul 01, 2026
5.0.0b3 Jun 18, 2026
5.0.0b2 May 21, 2026
5.0.0b1 Apr 30, 2026
4.8.1 Oct 26, 2026
4.8.0 Sep 30, 2026
4.7.5 Sep 21, 2026
4.7.4 Sep 16, 2026
4.7.3 Sep 03, 2026
4.7.2 Aug 07, 2026
4.7.1 Jul 15, 2026
4.7.0 Jul 02, 2026
4.6.0 May 28, 2026
4.5.0 May 12, 2026
4.4.0 Mar 25, 2026
4.3.0 Feb 12, 2026
4.2.0 Jan 07, 2026
4.1.1 Dec 02, 2025
4.1.0 Nov 19, 2025
4.0.0 Oct 09, 2025
3.18.1 Jul 15, 2026
3.18.0 Oct 06, 2025
3.17.4 Sep 22, 2025
3.17.3 Sep 03, 2025
3.17.2 Aug 20, 2025
3.17.1 Aug 14, 2025
3.17.0 Aug 14, 2025
3.16.0 Jul 01, 2025
3.15.0 Apr 28, 2025
3.14.1 Apr 21, 2025
3.14.0 Mar 04, 2025
3.13.2 Jan 30, 2025
3.13.1 Jan 29, 2025
3.13.0 Jan 24, 2025
3.12.4 Dec 04, 2024
3.12.3 Oct 24, 2024
3.12.2 Sep 11, 2024
3.12.1 Aug 20, 2024
3.12.0 Jul 24, 2024
3.11.0 Jun 18, 2024
3.10.1 May 21, 2024
3.10.0 Apr 29, 2024
3.9.1 Apr 22, 2024
3.9.0 Apr 18, 2024
3.8.1 Apr 09, 2024
3.8.0 Apr 04, 2024
3.7.1 Feb 22, 2024
3.7.0 Jan 26, 2024
3.6.0 Dec 07, 2023
3.5.0 Nov 13, 2023
3.4.1 Nov 10, 2023
3.4.0 Nov 02, 2023
3.3.1 Oct 18, 2023
3.3.0 Oct 12, 2023
3.3.0b1 Sep 13, 2023
3.2.1 Oct 03, 2023
3.2.0 Sep 07, 2023
3.1.1 Aug 29, 2023
3.1.0 Jul 31, 2023
3.1.0a2 Aug 01, 2023
3.1.0a1 Jul 25, 2023
3.0.4 May 25, 2023
3.0.3 Apr 20, 2023
3.0.2 Mar 23, 2023
3.0.1 Mar 01, 2023
3.0.0 Jan 27, 2023
2.9.0 Dec 14, 2022
2.8.3 Nov 29, 2022
2.8.2 Nov 19, 2022
2.8.1 Nov 02, 2022
2.8.0 Sep 27, 2022
2.7.12 Aug 25, 2022
2.7.11 Jul 28, 2022
2.7.10 Jul 25, 2022
2.7.9 Jun 24, 2022
2.7.8 May 26, 2022
2.7.7 Apr 27, 2022
2.7.6 Mar 18, 2022
2.7.5 Mar 16, 2022
2.7.4 Feb 02, 2022
2.7.3 Jan 20, 2022
2.7.2 Dec 17, 2021
2.7.1 Nov 17, 2021
2.7.0 Oct 25, 2021
2.6.2 Sep 27, 2021
2.6.1 Sep 14, 2021
2.6.0 Aug 27, 2021
2.5.1 Jul 28, 2021
2.5.0 Jul 20, 2021
2.4.6 Jun 22, 2021
2.4.5 Jun 15, 2021
2.4.4 May 28, 2021
2.4.3 Apr 26, 2021
2.4.2 Apr 01, 2021
2.4.1 Mar 04, 2021
2.4.0 Mar 02, 2021
2.3.10 Feb 01, 2021
2.3.9 Jan 27, 2021
2.3.8 Jan 12, 2021
2.3.7 Dec 08, 2020
2.3.6 Nov 17, 2020
2.3.5 Nov 03, 2020
2.3.4 Oct 27, 2020
2.3.3 Oct 05, 2020
2.3.2 Sep 14, 2020
2.3.1 Aug 25, 2020
2.3.0 Aug 24, 2020
2.2.10 Aug 04, 2020
2.2.9 Jul 15, 2020
2.2.8 Jun 23, 2020
2.2.7 Jun 01, 2020
2.2.6 May 12, 2020
2.2.5 Apr 30, 2020
2.2.4 Apr 10, 2020
2.2.3 Mar 30, 2020
2.2.2 Mar 11, 2020
2.2.1 Feb 19, 2020
2.2.0 Jan 28, 2020
2.1.3 Jan 06, 2020
2.1.2 Dec 17, 2019
2.1.1 Dec 12, 2019
2.1.0 Dec 02, 2019
2.0.4 Nov 12, 2019
2.0.3 Nov 01, 2019
2.0.2 Oct 22, 2019
2.0.1 Oct 03, 2019
2.0.0 Sep 30, 2019
1.9.1 Oct 05, 2019
1.8.7 Aug 12, 2019
1.8.6 Jul 29, 2019
1.8.5 Jul 16, 2019
1.8.4 Jul 01, 2019
1.8.3 Jun 17, 2019
1.8.2 Jun 03, 2019
1.8.1 May 21, 2019
1.8.0 May 10, 2019
1.7.11 Apr 22, 2019
1.7.10 Apr 09, 2019
1.7.9 Mar 25, 2019
1.7.8 Mar 12, 2019
1.7.7 Feb 22, 2019
1.7.6 Feb 08, 2019
1.7.5 Jan 25, 2019
1.7.4 Jan 04, 2019
1.7.3 Dec 11, 2018
1.7.2 Dec 04, 2018
1.7.1 Nov 27, 2018
1.7.0 Nov 13, 2018
1.6.12 Oct 30, 2018
1.6.11 Oct 23, 2018
1.6.10 Sep 25, 2018
1.6.9 Sep 13, 2018
1.6.8 Aug 30, 2018
1.6.7 Aug 23, 2018
1.6.6 Aug 09, 2018
1.6.5 Jul 13, 2018
1.6.4 Jul 05, 2018
1.6.3 Jun 14, 2018
1.6.2 Jun 07, 2018
1.6.1 May 17, 2018
1.6.0 May 03, 2018
1.5.8 Apr 26, 2018
1.5.7 Apr 19, 2018
1.5.6 Apr 05, 2018
1.5.5 Mar 22, 2018
1.5.4 Mar 15, 2018
1.5.3 Mar 08, 2018
1.5.2 Mar 01, 2018
1.5.1 Feb 15, 2018
1.5.0 Jan 26, 2018
1.4.17 Jan 18, 2018
1.4.16 Jan 16, 2018
1.4.15 Jan 11, 2018
1.4.14 Dec 14, 2017
1.4.13 Nov 30, 2017
1.4.12 Nov 17, 2017
1.4.11 Nov 09, 2017
1.4.10 Oct 26, 2017
1.4.9 Oct 10, 2017
1.4.8 Oct 05, 2017
1.4.7 Sep 20, 2017
1.4.6 Sep 14, 2017
1.4.5 Aug 31, 2017

Wheel compatibility matrix

Platform CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14 CPython 3.15 CPython (additional flags: t) 3.14
macosx_10_14_x86_64
macosx_10_15_x86_64
macosx_11_0_arm64
manylinux_2_28_aarch64
manylinux_2_28_x86_64
win_amd64
win_arm64

Files in release

snowflake_connector_python-5.2.0-cp311-cp311-macosx_10_14_x86_64.whl (10.6MiB)
snowflake_connector_python-5.2.0-cp311-cp311-macosx_11_0_arm64.whl (10.0MiB)
snowflake_connector_python-5.2.0-cp311-cp311-manylinux_2_28_aarch64.whl (12.0MiB)
snowflake_connector_python-5.2.0-cp311-cp311-manylinux_2_28_x86_64.whl (12.9MiB)
snowflake_connector_python-5.2.0-cp311-cp311-win_amd64.whl (11.1MiB)
snowflake_connector_python-5.2.0-cp311-cp311-win_arm64.whl (10.5MiB)
snowflake_connector_python-5.2.0-cp312-cp312-macosx_10_14_x86_64.whl (10.8MiB)
snowflake_connector_python-5.2.0-cp312-cp312-macosx_11_0_arm64.whl (10.2MiB)
snowflake_connector_python-5.2.0-cp312-cp312-manylinux_2_28_aarch64.whl (13.7MiB)
snowflake_connector_python-5.2.0-cp312-cp312-manylinux_2_28_x86_64.whl (14.6MiB)
snowflake_connector_python-5.2.0-cp312-cp312-win_amd64.whl (11.1MiB)
snowflake_connector_python-5.2.0-cp312-cp312-win_arm64.whl (10.5MiB)
snowflake_connector_python-5.2.0-cp313-cp313-macosx_10_14_x86_64.whl (11.0MiB)
snowflake_connector_python-5.2.0-cp313-cp313-macosx_11_0_arm64.whl (10.3MiB)
snowflake_connector_python-5.2.0-cp313-cp313-manylinux_2_28_aarch64.whl (15.4MiB)
snowflake_connector_python-5.2.0-cp313-cp313-manylinux_2_28_x86_64.whl (16.4MiB)
snowflake_connector_python-5.2.0-cp313-cp313-win_amd64.whl (11.2MiB)
snowflake_connector_python-5.2.0-cp314-cp314-macosx_10_15_x86_64.whl (11.1MiB)
snowflake_connector_python-5.2.0-cp314-cp314-macosx_11_0_arm64.whl (10.5MiB)
snowflake_connector_python-5.2.0-cp314-cp314-manylinux_2_28_aarch64.whl (17.1MiB)
snowflake_connector_python-5.2.0-cp314-cp314-manylinux_2_28_x86_64.whl (18.2MiB)
snowflake_connector_python-5.2.0-cp314-cp314-win_amd64.whl (11.8MiB)
snowflake_connector_python-5.2.0-cp314-cp314t-macosx_10_15_x86_64.whl (11.3MiB)
snowflake_connector_python-5.2.0-cp314-cp314t-macosx_11_0_arm64.whl (10.6MiB)
snowflake_connector_python-5.2.0-cp314-cp314t-manylinux_2_28_aarch64.whl (18.9MiB)
snowflake_connector_python-5.2.0-cp314-cp314t-manylinux_2_28_x86_64.whl (20.0MiB)
snowflake_connector_python-5.2.0-cp314-cp314t-win_amd64.whl (11.8MiB)
snowflake_connector_python-5.2.0-cp315-cp315-macosx_10_15_x86_64.whl (11.4MiB)
snowflake_connector_python-5.2.0-cp315-cp315-macosx_11_0_arm64.whl (10.8MiB)
snowflake_connector_python-5.2.0-cp315-cp315-manylinux_2_28_aarch64.whl (20.6MiB)
snowflake_connector_python-5.2.0-cp315-cp315-manylinux_2_28_x86_64.whl (21.8MiB)
snowflake_connector_python-5.2.0-cp315-cp315-win_amd64.whl (11.9MiB)
snowflake_connector_python-5.2.0.tar.gz (1.9MiB)
Extras:
Dependencies:
cryptography (>=46.0.5)
protobuf (<7,>=6.32.1)
pytz
tomlkit (>=0.13)