https://github.com/thelogicmaster/dash-callback-conglomerate
Enable duplicated Dash inputs and outputs, and without changing a single callback.
https://github.com/thelogicmaster/dash-callback-conglomerate
Last synced: 11 months ago
JSON representation
Enable duplicated Dash inputs and outputs, and without changing a single callback.
- Host: GitHub
- URL: https://github.com/thelogicmaster/dash-callback-conglomerate
- Owner: TheLogicMaster
- License: mit
- Created: 2019-07-02T03:35:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T20:53:20.000Z (almost 7 years ago)
- Last Synced: 2025-03-25T20:21:23.376Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
# About
This is a Plotly Dash add-on for enabling more freedom with callback handling, enabling sharing inputs, outputs, and
only returning some of the outputs registered for a callback. There are two ways to use this add-on. One method is
seamless integration where the dash callback function is hijacked and replaced with a call to this modules callback
function, and the other method is directly calling the function with the decorators.
# Installation
```
pip install dash-callback-conglomerate
```
# Basic Usage
```python
import dash
from dash_callback_conglomerate import Router
from dash.dependencies import Input, Output
app = dash.Dash(__name__)
router = Router(app, True)
app.layout = ...
@app.callback(Output('component', 'property'),
Input('component', 'property'))
def callback(value):
...
return 'value'
router.register_callbacks()
if __name__ == '__main__':
app.run_server(debug=True)
```