https://github.com/streamlit/snowflake-usage-app
A Streamlit app that provides insights on your Snowflake account usage.
https://github.com/streamlit/snowflake-usage-app
python snowflake streamlit
Last synced: 3 months ago
JSON representation
A Streamlit app that provides insights on your Snowflake account usage.
- Host: GitHub
- URL: https://github.com/streamlit/snowflake-usage-app
- Owner: streamlit
- License: apache-2.0
- Created: 2022-06-12T20:32:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T08:47:40.000Z (5 months ago)
- Last Synced: 2025-04-02T09:07:26.162Z (3 months ago)
- Topics: python, snowflake, streamlit
- Language: Python
- Homepage:
- Size: 206 KB
- Stars: 57
- Watchers: 4
- Forks: 28
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!NOTE]
> Discover many more Streamlit & Snowflake apps in the [snowflake-demo-streamlit](https://github.com/Snowflake-Labs/snowflake-demo-streamlit) repository---
# Streamlit demo: 🌀 The Snowflake Usage Insights app
This app provides insights on a demo Snowflake account usage.
It was made using :balloon: [Streamlit](https://www.streamlit.io) and the :snowflake: [Snowflake Python connector](https://github.com/snowflakedb/snowflake-connector-python)!
### Can I use this app with my own Snowflake account?
This demo app currently only supports basic username / password authentication
to connect to your Snowflake account. For security purposes, we recommend cloning this app and running it **locally** instead of on Streamlit Cloud. If you're interested, head over to the next section!### Run this app locally
Follow these steps:1. **Set up dependencies.** Get [Pipenv](https://pipenv-fork.readthedocs.io/en/latest/install.html#pragmatic-installation-of-pipenv),
clone/fork this repository and within the directory, run:
```
pipenv clean && pipenv install --python 3.9
```2. **Set up credentials.** Create a file `.streamlit/secrets.toml` and fill in your Snowflake account
credentials. The file should look like this:
```
[sf_usage_app]
user = "..."
account = "..."
password = "..."
warehouse = "..."
```3. **Run the app locally.** Simply run:
```
pipenv run streamlit run Home.py
```🎊 Your browser should now be opened with the Streamlit app running locally!
### Contribute
Feel free to contribute! Simply make sure to:
1. Install development dependencies `pipenv install --python 3.9 --dev`
2. Set up pre-commit hooks `pipenv run pre-commit install`### Questions? Comments?
Please ask in the [Streamlit community](https://discuss.streamlit.io).