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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dash-callbackmanager-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e42d82270c60d01d99d316e5def5f4412f609b902c0c2f4e0ba034a426e557d4 |
|
MD5 | 6e40d0b99c34db14f12dd5b13cd71032 |
|
BLAKE2b-256 | 41a2965cd6c9ffb1a08a480c734c754e9298e3edf75524e8381c748d05febc09 |
Close
Hashes for dash_callbackmanager-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df401285ab2617621a15b385fec975f5256b218bd4753fb9a101a0b19f2bfaf9 |
|
MD5 | b9578e912fe6ec34b09bb2a3dd89b56d |
|
BLAKE2b-256 | 33dd81d64ecf1c1aec70c8f68a4eca9e53aef24c5d86402d605519bccd3d3552 |