functional
Functional API for Streamlit Notify (For Streamlit Extras)
- streamlit_notify.functional.exception_stn(*args, **kwargs)[source]
Display an exception notification.
- streamlit_notify.functional.create_notification(*args, **kwargs)[source]
Create a notification without adding it to the queue.
- streamlit_notify.functional.notify(notification_type=None, remove=True, priority=None, priority_type='ge')[source]
Display queued notifications.
- Parameters:
notification_type (Literal['toast', 'balloons', 'snow', 'success', 'info', 'error', 'warning', 'exception'] | ~typing.Iterable[~typing.Literal['toast', 'balloons', 'snow', 'success', 'info', 'error', 'warning', 'exception']] | None)
remove (bool)
priority (int | None)
priority_type (Literal['le', 'ge', 'eq'])
- Return type:
None
- streamlit_notify.functional.get_notifications(notification_type=None, priority=None, priority_type='ge')[source]
Retrieve all notifications for a specific type. If no type is specified, retrieves all notifications.
- Parameters:
- Return type:
List[StatusElementNotification]
- streamlit_notify.functional.clear_notifications(notification_type=None)[source]
Clear notifications for a specific type. If no type is specified, clears all notifications.
- Parameters:
notification_type (Literal['toast', 'balloons', 'snow', 'success', 'info', 'error', 'warning', 'exception'] | ~typing.Iterable[~typing.Literal['toast', 'balloons', 'snow', 'success', 'info', 'error', 'warning', 'exception']] | None)
- Return type:
None
- streamlit_notify.functional.get_notification_queue(notification_type)[source]
Retrieve notifications for a specific type.
- Parameters:
notification_type (Literal['toast', 'balloons', 'snow', 'success', 'info', 'error', 'warning', 'exception'])
- Return type:
- streamlit_notify.functional.has_notifications(notification_type=None)[source]
Check if there are any notifications of a specific type. If no type is specified, checks for any notifications.