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
File details
Details for the file dash-callbackmanager-2.0.0.tar.gz
.
File metadata
- Download URL: dash-callbackmanager-2.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.4 Darwin/21.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e42d82270c60d01d99d316e5def5f4412f609b902c0c2f4e0ba034a426e557d4 |
|
MD5 | 6e40d0b99c34db14f12dd5b13cd71032 |
|
BLAKE2b-256 | 41a2965cd6c9ffb1a08a480c734c754e9298e3edf75524e8381c748d05febc09 |
File details
Details for the file dash_callbackmanager-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: dash_callbackmanager-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.4 Darwin/21.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df401285ab2617621a15b385fec975f5256b218bd4753fb9a101a0b19f2bfaf9 |
|
MD5 | b9578e912fe6ec34b09bb2a3dd89b56d |
|
BLAKE2b-256 | 33dd81d64ecf1c1aec70c8f68a4eca9e53aef24c5d86402d605519bccd3d3552 |