Skip to main content

Offline detect plugin for Dash applications using Dash Hooks.

Project description

dash-offline-detect-plugin

GitHub PyPI Ruff

Offline detect plugin for Dash applications using Dash Hooks.

Installation

pip install dash-offline-detect-plugin

Usage

from dash import Dash
# Import the offline detect plugin
from dash_offline_detect_plugin import setup_offline_detect_plugin

# Enable the offline detect plugin for the current app
setup_offline_detect_plugin()

app = Dash(__name__)
# Rest of your app code...

Example

Run the included example:

python example.py

API Reference

setup_offline_detect_plugin()

This function enables the offline detection feature for your Dash application.

Parameter Type Default Description
interval int 5000 Interval of detection in browser (milliseconds). Controls how frequently the browser checks if the backend service is available.
title str "Service Unavailable" Title of the overlay displayed when the service is unavailable.
description str "Unable to connect to the backend service, trying to reconnect..." Description text displayed in the overlay when the service is unavailable.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dash_offline_detect_plugin-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dash_offline_detect_plugin-0.1.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file dash_offline_detect_plugin-0.1.3.tar.gz.

File metadata

File hashes

Hashes for dash_offline_detect_plugin-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d85e97388631453357fd551637b3e3a195400dca51c3b7fab4907dabb592cfed
MD5 71b5afa5f0a38b8037d2980dee418428
BLAKE2b-256 54a267cbd0d1841d1733cb49b75d7f647a5c613a736b18d1f3b143b7d74d7b52

See more details on using hashes here.

File details

Details for the file dash_offline_detect_plugin-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dash_offline_detect_plugin-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 35c0341950a662219ed544b8604009e83b0998d5621b51fd0c65c29df247fecf
MD5 ba5fc63c27cdadcfa0ef8821c1e0c656
BLAKE2b-256 06dea84d33e04dd3ccbd4e02c42fa7758792fea444a201d70b816e9377037003

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page