# dash-disable-devtool-plugin **Repository Path**: cnfeffery/dash-disable-devtool-plugin ## Basic Information - **Project Name**: dash-disable-devtool-plugin - **Description**: 同步Github dash-disable-devtool-plugin仓库 - **Primary Language**: Python - **License**: MIT - **Default Branch**: main - **Homepage**: https://github.com/CNFeffery/dash-disable-devtool-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-disable-devtool-plugin [](https://github.com/CNFeffery/dash-disable-devtool-plugin/blob/main/LICENSE) [](https://pypi.org/project/dash-disable-devtool-plugin/) [](https://github.com/astral-sh/ruff) 简体中文 | [English](./README.md) 适用于[Dash](https://github.com/plotly/dash)应用的浏览器开发者工具禁用插件,基于`Dash Hooks`实现,用于为当前应用配置浏览器开发者工具相关功能的禁用权限。 ## 安装 ```bash pip install dash-disable-devtool-plugin ``` ## 使用 ```python from dash import Dash # 导入插件启用函数 from dash_disable_devtool_plugin import setup_disable_devtool_plugin # 为当前应用启用插件 setup_disable_devtool_plugin() app = Dash(__name__) # 其他应用代码... ``` ## 示例 在基础示例应用中,禁用了浏览器中启用开发者工具的各种快捷键方式,且即使使用其他特殊方式启用了开发者工具,也会很快被应用检测到,从而自动触发页面清空、内容重写等操作: ```bash python example.py ```