Local Streamlit application

These instructions will set up a python environment to run Sentry in.

  1. (if uv is not installed) Install uv using steps from official documentation.

  2. Clone the source code and change current directory to its root

  3. Run uv sync --all-extras to install all dependencies

  4. 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>"
    
  5. Run uv run streamlit run src/Authentication.py

  6. Open the URL provided by Streamlit in the terminal (typically http://localhost:8501)