Skip to main content

A plugin to filter the error messages in the console of the browser for Dash applications using Dash Hooks.

Project description

dash-console-filter-plugin

GitHub PyPI Ruff

Console message filtering plugin for Dash applications using Dash Hooks. This plugin allows you to filter specific error messages in the browser console.

Installation

pip install dash-console-filter-plugin

Usage

import dash

# Import the console filter plugin
from dash_console_filter_plugin import setup_console_filter_plugin

# Enable the console filter plugin for the current app
setup_console_filter_plugin(keywords=["test warning message"])

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

Example

Run the included example:

python example.py

API Reference

setup_console_filter_plugin()

This function enables the console message filtering feature for your Dash application.

Parameter Type Default Description
filter_patterns List[str] None List of keywords to filter, messages containing any of these keywords in the console of the browser will be filtered.

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_console_filter_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_console_filter_plugin-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dash_console_filter_plugin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 51e5965d81352adbb4125ff7936fe4699d24bc8fe7a99689efd51ffcac7d94d7
MD5 54e575e7e9d35ca36a3ff9be369cfdc3
BLAKE2b-256 a8e9166b805e90ade94d8613fd86aaf386961034040e35d7d2ea8550f88944b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dash_console_filter_plugin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a708f74968182174d0162e23943c76138c73b8af9ca4071a38ac5bd272c5efd
MD5 30719704c224975eb07b31b737aec639
BLAKE2b-256 638f5e4dd962d29fb7e5596f5062a24b525e7918d1f6c1d8aa9b7ecff767afcc

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