Local Streamlit application
These instructions will set up a python environment to run Sentry in.
-
(if
poetry
is not installed) Install poetry using steps from official documentation. -
Clone the source code and change current directory to its root
-
Run
poetry install
to install all dependencies -
Set up Streamlit secrets.
If using project-specific secrets,
.streamlit
directory needs to be created in the root of the application.Ensure that
connections.default
is specified in the secrets file, for example:[connections.default] account = "<accountName>" user = "<userName>" warehouse = "<whName>" role = "<role>" # Any role with access to ACCOUNT_USAGE private_key_file = "<pathToPrivateKeyFile>"
-
Run
poetry shell
to activate the virtual environment -
Run
streamlit run src/Authentication.py
-
Open the URL provided by Streamlit in the terminal (typically
http://localhost:8501
)