Skip to main content

trulens-connectors-snowflake

Snowflake connector for TruLens. Logs traces and evaluations to your Snowflake account.

Install

pip install trulens-connectors-snowflake

Quick Start

from trulens.connectors.snowflake import SnowflakeConnector
from trulens.core import TruSession

conn = SnowflakeConnector(snowpark_session=my_existing_session)
session = TruSession(connector=conn)

Authentication Methods

No password required for most auth methods. SnowflakeConnector supports any auth that Snowpark supports.

Method Key Param Password Required?
Existing Snowpark Session snowpark_session= No
Browser SSO authenticator="externalbrowser" No
Key-pair auth private_key_file="rsa_key.p8" No
OAuth token authenticator="oauth", token=... No
Username / password password="..." Yes

Browser-based SSO

conn = SnowflakeConnector(
    account="myaccount",
    user="myuser",
    authenticator="externalbrowser",
    database="mydb",
    schema="myschema",
    warehouse="mywh",
    role="myrole",
)

Key-pair auth

conn = SnowflakeConnector(
    account="myaccount",
    user="myuser",
    private_key_file="/path/to/rsa_key.p8",
    database="mydb",
    schema="myschema",
    warehouse="mywh",
    role="myrole",
)

OAuth access token

conn = SnowflakeConnector(
    account="myaccount",
    user="myuser",
    authenticator="oauth",
    token="<token>",
    database="mydb",
    schema="myschema",
    warehouse="mywh",
    role="myrole",
)

Full Documentation

See the Logging in Snowflake guide for complete examples including session refresh for long-running apps and troubleshooting.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trulens_connectors_snowflake-2.12.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file trulens_connectors_snowflake-2.12.0.tar.gz.

File metadata

File hashes

Hashes for trulens_connectors_snowflake-2.12.0.tar.gz
Algorithm Hash digest
SHA256 568def54c50e760902a57b3003b1afcd84e2aaf1e055447d6ff88706de191408
MD5 301614eed1db09cf234a947fe1a15158
BLAKE2b-256 5d869eca7c4960a5e806fca3372df15dc22f8f6e15ecfac175a03d91c727f666

See more details on using hashes here.

File details

Details for the file trulens_connectors_snowflake-2.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for trulens_connectors_snowflake-2.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cec562c421f3ce368d4fcbed9099c6411098e650be491f2dd5b81b7c16afe063
MD5 669305e82a4a38e323722095601f46a1
BLAKE2b-256 006ac30c475b0a1591cae18c98f96bace58ecf2898c9a982a9ea81c4f84992f4

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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