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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trulens_connectors_snowflake-2.8.0.tar.gz.
File metadata
- Download URL: trulens_connectors_snowflake-2.8.0.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb435bb9f85d7710629c948de555b10efa0ff6c687e045ba44e5ce170c89c789
|
|
| MD5 |
cad19798922296549ed9a8f9052ff355
|
|
| BLAKE2b-256 |
9fdacd969a0b410cc2acf49f24d4f152fe336451ede59a9498ef5491e0423cac
|
File details
Details for the file trulens_connectors_snowflake-2.8.0-py3-none-any.whl.
File metadata
- Download URL: trulens_connectors_snowflake-2.8.0-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43d7369df9a00b56eb182f6a88f20b4eb0860e560a4a8d7668bda73104aa4799
|
|
| MD5 |
c89aa7c720fd356c80c80dd90b02a579
|
|
| BLAKE2b-256 |
5b824c8c90c1528896fc2acd2b52af23179fb17f7e34d95666348884adeabc96
|