Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

envelop-risk/dash-callbackmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)