Skip to main content

Library to systematically track and evaluate LLM based applications.

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

2.7.2

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.7.2.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

trulens_connectors_snowflake-2.7.2-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for trulens_connectors_snowflake-2.7.2.tar.gz
Algorithm Hash digest
SHA256 1700ae84e07acd5a78e2c551e88c04199708753473cff7f798cc46323bc9937b
MD5 b17f5bcc3c55cdb5acb79c2bbb4c3671
BLAKE2b-256 0c47429f04a970540cfb816afd2bf6bc9ef4b95837c94a587dab0a0685dff215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trulens_connectors_snowflake-2.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0287a494b65911d56c783f59774593c5a0bc25c7e5545fcad7df037f1b8c4333
MD5 7d7a9801713a07b1c2852ef76b2823ca
BLAKE2b-256 a0c072d4727dc3bcb19d0aac08d6e23f0801a9462087d2016709d0ed0b1d530c

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