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.1.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.

trulens_connectors_snowflake-2.8.1-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for trulens_connectors_snowflake-2.8.1.tar.gz
Algorithm Hash digest
SHA256 021a5a097627fe2fb1685bbf168ed986644c8bd22639b6c333d1fc525d2e82e7
MD5 e2b95203f37630d7ac86ce0f2104f771
BLAKE2b-256 fe1d23c51c96ff6c3712db6f1909d1ed2e2b81462428bf027fd6ad7fdbf90e19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trulens_connectors_snowflake-2.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a2df5373b9bde7e5b62973cd9490b4b46be6466de9de7df10644384912e7dbd
MD5 76cf9b762e7f07fbc68abd78eda5c3a0
BLAKE2b-256 045b8ef9b43a69063f66a92c3ba2b25c3372c72d931ca840c68a8f83710c5972

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