sda.dashboard.callbacks#

Dashboard Callbacks.


Centralized callback registration for the SDA dashboard with flask_caching pipeline architecture.

Pipeline Architecture: 1. Load (& validate) → 2. Filter columns → 3. Filter rows → 4. Plot

Each callback follows the pipeline stages with flask_caching memoization for optimal performance.

Submodules#

Classes#

FlaskCacheCallbacks

Simplified callbacks using flask_caching pipeline with Pickle storage.

Functions#

register_download_callbacks(app[, test_name, verbose])

Register download callbacks for Python script generation and Excel file opening.

register_all_callbacks(app, test_name[, verbose])

Register all dashboard callbacks using the flask_caching pipeline architecture.

Package Contents#

class sda.dashboard.callbacks.FlaskCacheCallbacks(app, verbose=False)#

Simplified callbacks using flask_caching pipeline with Pickle storage.

app#
verbose = False#
error_handler#
pipeline#
register_callbacks()#

Register all callbacks for the flask_caching pipeline.

clear_cache(test_name=None)#

Clear cache for specific test or all cache.

get_cache_stats()#

Get cache statistics.

sda.dashboard.callbacks.register_download_callbacks(app, test_name=None, verbose=False)#

Register download callbacks for Python script generation and Excel file opening.

Parameters:

app (dash.Dash) – The Dash application instance.

sda.dashboard.callbacks.register_all_callbacks(app, test_name, verbose=False)#

Register all dashboard callbacks using the flask_caching pipeline architecture.

Parameters:
  • app (dash.Dash) – The dash.Dash application

  • test_name (str, list of str, or None) – Name(s) of the test(s) to load

  • verbose (bool) – Whether to print verbose output

See also

FlaskCacheCallbacks

Callback registrar and handlers organized by pipeline stages.