connecting-streamlit-to-snowflake

Connect Streamlit applications to Snowflake databases using st.connection and st.secrets.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/Aaron-Tawil/super-order-automation --skill connecting-streamlit-to-snowflake-aaron-tawil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: connecting-streamlit-to-snowflake
Source: https://github.com/Aaron-Tawil/super-order-automation/tree/main/.codex/skills/developing-with-streamlit/skills/connecting-streamlit-to-snowflake
Command: npx skills add https://github.com/Aaron-Tawil/super-order-automation --skill connecting-streamlit-to-snowflake-aaron-tawil

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires snowflake-connector-python, and includes references (resource) components.

What problem does it solve?

This Skill simplifies and secures the process of connecting Streamlit applications to Snowflake databases, ensuring efficient data access and management.

Core Features & Use Cases

  • st.connection: Utilizes Streamlit's native connection management for pooling, caching, and automatic reconnections.
  • Caller's Rights: Enables running queries with the viewer's permissions for enhanced security and data segregation.
  • Secret Management: Integrates seamlessly with st.secrets for secure credential handling.
  • Use Case: Build a Streamlit dashboard that displays real-time sales data from Snowflake, with each user seeing only the data relevant to their region based on their Snowflake role.

Quick Start

Use st.connection("snowflake") to query data from your Snowflake database.

Frequently Asked Questions about connecting-streamlit-to-snowflake

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect Streamlit to Snowflake securely?

To connect Streamlit to Snowflake securely, use `st.connection` for connection management and `st.secrets` to handle database credentials, ensuring safe data access without hardcoding passwords.

How does st.connection handle Snowflake database connections in Streamlit?

`st.connection` handles Snowflake database connections by providing native connection pooling, automatic reconnections, and built-in caching to optimize query performance and data management within Streamlit apps.

Can I run Snowflake queries with the viewer's permissions in Streamlit?

Yes, you can run Snowflake queries with the viewer's permissions using Caller's Rights, enabling granular user permissions and data segregation so each viewer sees only data relevant to their role.

What is the best way to manage Snowflake credentials in a Streamlit app?

The best way to manage Snowflake credentials in Streamlit is by using `st.secrets`, which integrates seamlessly with `st.connection` to securely store and handle database access credentials.

Do I need snowflake-connector-python to use st.connection with Snowflake?

Yes, you need the `snowflake-connector-python` dependency installed to establish the underlying database connection when using `st.connection` to integrate Streamlit with Snowflake.