Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-08T22:15:16.000Z (about 1 year ago)
- Last Synced: 2024-09-28T12:15:38.329Z (4 months ago)
- Topics: python, snowflake, streamlit
- Language: Python
- Homepage:
- Size: 207 KB
- Stars: 56
- Watchers: 5
- Forks: 27
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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).