Snowflake DB driver for Python
Actively maintained. Last release 4 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
pip install snowflake-connector-pythonSnowflake 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 ()