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

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.8.0.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.8.0-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for trulens_connectors_snowflake-2.8.0.tar.gz
Algorithm Hash digest
SHA256 fb435bb9f85d7710629c948de555b10efa0ff6c687e045ba44e5ce170c89c789
MD5 cad19798922296549ed9a8f9052ff355
BLAKE2b-256 9fdacd969a0b410cc2acf49f24d4f152fe336451ede59a9498ef5491e0423cac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trulens_connectors_snowflake-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43d7369df9a00b56eb182f6a88f20b4eb0860e560a4a8d7668bda73104aa4799
MD5 c89aa7c720fd356c80c80dd90b02a579
BLAKE2b-256 5b824c8c90c1528896fc2acd2b52af23179fb17f7e34d95666348884adeabc96

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