Skip to main content

dash-performance-monitor-plugin

GitHub PyPI Ruff

English | 简体中文

A plugin to add extra performance monitor for Dash applications using Dash Hooks.

Installation

pip install dash-performance-monitor-plugin

Usage

from dash import Dash

# Import the performance monitor plugin
from dash_performance_monitor_plugin import setup_performance_monitor_plugin

# Enable the performance monitor plugin for the current app
setup_performance_monitor_plugin()

app = Dash(__name__)

# Rest of your app code...

Example

Run the included example. This example demonstrates how to add a performance monitor to your Dash application, which will show FPS (Frames Per Second), MS (Milliseconds per frame), and MB (Memory usage) in real-time.

python example.py

API Reference

setup_performance_monitor_plugin()

This function sets up the performance monitor plugin for your Dash application using stats.js.

Parameter Type Default Description
script_src str "https://cdn.jsdelivr.net/npm/stats.js@latest/build/stats.min.js" Source URL of the stats.js script. Alternative CDNs: https://unpkg.com/stats.js@latest/build/stats.min.js, https://registry.npmmirror.com/stats.js/latest/files/build/stats.min.js
left Union[int, float] 0 The left pixel position of the monitor panel.
top Union[int, float] 0 The top pixel position of the monitor panel.
opacity Union[int, float] 0.9 The opacity of the monitor panel (0-1).
zIndex int 10000 The z-index of the monitor panel.

Metadata

Release files for dash-performance-monitor-plugin 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dash-performance-monitor-plugin 0.1.1
File Size Uploaded
dash_performance_monitor_plugin-0.1.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dash-performance-monitor-plugin 0.1.1
File Interpreter ABI Platform
dash_performance_monitor_plugin-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / dash_performance_monitor_plugin-0.1.1.tar.gz

Download URL dash_performance_monitor_plugin-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f729e2dace30c6849e9e75a9e135eb3026a0a1b574ff08edaba2ae261826c1d2
BLAKE2b-256 checksum
How to use checksums
f9b716b21b3571a4235308bd458eda97f1b096a3f57179e3b2d7b10298509a75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release files / dash_performance_monitor_plugin-0.1.1-py3-none-any.whl

Download URL dash_performance_monitor_plugin-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82450de8d545e5c4afafd61aa21222e4d03cd3f205c24fe937e85760393fb7ec
BLAKE2b-256 checksum
How to use checksums
42f5a28a45f7dfd15f5fe840f742a3b1155ef443a86a7da4a4d4a194a128b832
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page