Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)!

CleanShot 2022-06-13 at 23 03 10@2x

### 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).