Skip to main content

Dash callback manager, group callbacks easier within code.

Project description

dash-callbackmanager

As your dash application grows the management of callbacks becomes a bit of an overhead. The callback manager allows you to bundle collections of dash callbacks together allowing you to easily keep your app.py clean.

Installation:

pip install dash-callbackmanager

Usage:

The callback manager allows you to easily slip out the callbacks into separate files.

# callbacks.py

from dash_callbackmanager import CallbackManager

manager = CallbackManager()

@manger.callback()
def my_callback(Output("element", "children"), Input("other-element", "value")):
    ...
# app.py
from dash import Dash
from .callbacks import manager

app = Dash(__name__)

manager.register(app)

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-callbackmanager-2.0.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

dash_callbackmanager-2.0.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page