streamlit_dashboard namespace

Subpackages

Submodules

streamlit_dashboard.auth_config_loader module

streamlit_dashboard.auth_config_loader.load_auth_config(config_path) Authenticate

streamlit_dashboard.main module

Entry point and primary orchestrator for the Streamlit dashboard application.

This script establishes the global execution environment before rendering any specialized report components. It acts as the central dependency provider, executing three critical initialization phases to ensure child classes operate within a safe, predictable state:

  1. Security & Access Control: Initializes the session state with user credentials and roles. It establishes the login UI and conditionally injects restricted routes (like the AdminPanelPage) into the navigation tree based on specific role-based permissions.

  2. Configuration State Management: Loads and strictly validates the DashboardConfig YAML file, injecting it into the Streamlit session state. This fail-fast initialization guarantees that all downstream report classes (e.g., NaicsReportPage, TrainingsEventCountsPage) can reliably resolve their required Neoserra data endpoints based on user-selected fiscal periods without performing redundant file I/O.

  3. Global Telemetry: Configures a centralized rotating file and console logging architecture. By defining this at the root level, any initialization or rendering errors caught within the isolated execution boundaries of individual report pages are captured consistently.

streamlit_dashboard.streamlit_constants module