Skip to main content

A plugin to monitor the rendering performance of page components for Dash applications using Dash Hooks.

Project description

dash-react-scan-plugin

GitHub PyPI Ruff

A plugin to monitor the rendering performance of page components for Dash applications using Dash Hooks. This plugin integrates react-scan to help you analyze and optimize your Dash application's performance.

Installation

pip install dash-react-scan-plugin

Usage

from dash import Dash
# Import the react scan plugin
from dash_react_scan_plugin import setup_react_scan_plugin

# Enable the react scan plugin for the current app
setup_react_scan_plugin()

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

Example

Run the included example. This example demonstrates how to use react-scan to monitor component rendering performance in your Dash application. The plugin will automatically inject the react-scan tool into your application, allowing you to visualize and analyze component re-renders.

python example.py

API Reference

setup_react_scan_plugin()

This function sets up the react-scan plugin for your Dash application.

Parameter Type Default Description
script_src str "https://cdn.jsdelivr.net/npm/react-scan@latest/dist/auto.global.js" Source URL of the react-scan script. Alternative CDNs: https://unpkg.com/react-scan@latest/dist/auto.global.js, https://registry.npmmirror.com/react-scan/latest/files/dist/auto.global.js

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_react_scan_plugin-0.1.0.tar.gz (3.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_react_scan_plugin-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file dash_react_scan_plugin-0.1.0.tar.gz.

File metadata

  • Download URL: dash_react_scan_plugin-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for dash_react_scan_plugin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7e0002a76c62f93928f35d9ca43b2fe8a99838d94a79b05059539111473805e1
MD5 c06b324deaede84a3e688fa2f1b1ae8d
BLAKE2b-256 12c02b030be3924779d5eb8140aa70a3fa7aceafb27e5ce79b61a91f0c8131b2

See more details on using hashes here.

File details

Details for the file dash_react_scan_plugin-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dash_react_scan_plugin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7dd3e328e55f80cfcde5b5e38e49d338abd1aeeb7394dd8b4ae235a2b04e0804
MD5 d2179c0962ed93c8678bc62a77028279
BLAKE2b-256 8bc90cb64536e93b788ac3b2d99350a4c8a4c6ba7b2aba31070fa862e4296fe9

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