# dash-offline-detect-plugin **Repository Path**: cnfeffery/dash-offline-detect-plugin ## Basic Information - **Project Name**: dash-offline-detect-plugin - **Description**: 同步Github dash-offline-detect-plugin仓库 - **Primary Language**: Python - **License**: MIT - **Default Branch**: main - **Homepage**: https://github.com/CNFeffery/dash-offline-detect-plugin - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-22 - **Last Updated**: 2025-07-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dash-offline-detect-plugin [](https://github.com/CNFeffery/dash-offline-detect-plugin/blob/main/LICENSE) [](https://pypi.org/project/dash-offline-detect-plugin/) [](https://github.com/astral-sh/ruff) 简体中文 | [English](./README.md) 适用于[Dash](https://github.com/plotly/dash)应用的离线检测插件,基于`Dash Hooks`实现,用于检测当前应用是否离线。 ## 安装 ```bash pip install dash-offline-detect-plugin ``` ## 使用 ```python from dash import Dash # 导入插件启用函数 from dash_offline_detect_plugin import setup_offline_detect_plugin # 为当前应用启用插件 setup_offline_detect_plugin() app = Dash(__name__) # 其他应用代码... ``` ## 示例 执行示例应用: ```bash python example.py ```