deepcave.utils.dash

# Dash

This module provides utilities to return and flash alerts.

Functions

alert(message)

Return an alert message.

flash(message[, category])

Flask style flash-message with Alerts.

deepcave.utils.dash.alert(message)[source]

Return an alert message.

Parameters:

message (str) – The message of the alert.

Returns:

The alert object.

Return type:

dbc.Alert

deepcave.utils.dash.flash(message, category='info')[source]

Flask style flash-message with Alerts.

Parameters:
  • message (str) – The message to be displayed.

  • category (str, optional) – The category of the alert. Default is “info”.

Returns:

The alert object.

Return type:

dbc.Alert