dash-offline-detect-plugin
English | 简体中文
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. |
Metadata
Release files for dash-offline-detect-plugin 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dash_offline_detect_plugin-0.1.4.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dash_offline_detect_plugin-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / dash_offline_detect_plugin-0.1.4.tar.gz
| Download URL | dash_offline_detect_plugin-0.1.4.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be5dc08df270bed0fc134d5a715a4eb7a2eb6c1afcd39083ca4e18ba63bb81a0
|
|
BLAKE2b-256 checksum How to use checksums |
1f8963ed995067de9ca40a9f14961d6dffff5d06d5414608147daf3dcbc160fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / dash_offline_detect_plugin-0.1.4-py3-none-any.whl
| Download URL | dash_offline_detect_plugin-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de9ac90ba16beb05b5e8725ede8c458951bf4a864dbc53ff9cd150e152311d13
|
|
BLAKE2b-256 checksum How to use checksums |
3e539086771904cde9c9d331634c4d74d4d7b504c9bd2d4d9757e58721bd9019
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|