connecting-streamlit-to-snowflake

Connect Streamlit apps to Snowflake databases and execute queries.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/michaelschecht/Edge-Radar --skill connecting-streamlit-to-snowflake-michaelschecht
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: connecting-streamlit-to-snowflake
Source: https://github.com/michaelschecht/Edge-Radar/tree/main/.claude/skills/developing-with-streamlit/skills/connecting-streamlit-to-snowflake
Command: npx skills add https://github.com/michaelschecht/Edge-Radar --skill connecting-streamlit-to-snowflake-michaelschecht

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the complexity of setting up database connections and querying Snowflake databases within Streamlit apps, making it easier for users to leverage Snowflake's capabilities directly from their Streamlit interface.

Core Features & Use Cases

  • Database Connection: Streamline the process of connecting Streamlit apps to Snowflake.
  • Secret Management: Safely manage and inject credentials into Streamlit apps.
  • Query Execution: Execute queries against Snowflake databases from Streamlit.
  • Use Case: With this Skill, users can create a Streamlit app that queries a Snowflake database, processes the results, and displays them in an interactive format, such as a table or chart.

Quick Start

Use the st.connection("snowflake") to connect your Streamlit app to a Snowflake database and execute a query, for example: df = st.connection("snowflake").query("SELECT * FROM my_table").

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 a Streamlit app to a Snowflake database?

Connect Streamlit to Snowflake by calling the st.connection("snowflake") method. This establishes a secure database connection, allowing you to directly query Snowflake and retrieve results into your Streamlit application interface.

What dependencies do I need to query Snowflake from Streamlit?

Querying Snowflake from Streamlit requires installing the streamlit[snowflake] package and the snowflake-connector-python SDK. These dependencies provide the necessary interfaces for secure database access and data retrieval within your app.

Can I securely manage Snowflake credentials in my Streamlit application?

Yes, you can securely manage Snowflake credentials in a Streamlit application. The Skill includes features for safe secret management, allowing you to inject credentials into your app without hardcoding them directly in your scripts.

What is the best way to display Snowflake query results in Streamlit?

The best way to display Snowflake query results in Streamlit is to execute a query using the connection object, process the returned data, and render it in an interactive format such as a table or chart directly within your app.

Does st.connection work for executing SQL queries against Snowflake?

Yes, st.connection works for executing SQL queries against Snowflake. You can use the query method on the connection object, for example: df = st.connection("snowflake").query("SELECT * FROM my_table"), to fetch data.