Skip to content

A library for making Dash apps easier to build and particularly focusing on common data collection use cases

License

Notifications You must be signed in to change notification settings

kmader/easy_dash

Repository files navigation

easy_dash

Binder Black CircleCI codecov This project is using Percy.io for visual regression testing. Language grade: Python

A simple wrapper library for making Dash apps easier to build

Overview

The idea is to make Dash easier to use for new developers, harder to make bugs with, and include a few common patterns and integrations like matplotlib support and interact from ipywidgets

Usage

Simple Names Automagic Callbacks

from easy_dash import EasyDash
import dash_html_components as html
import dash_core_components as dcc

app = EasyDash(__name__)
app.layout = html.Div(
    [
        dcc.Input(id="input", value="initial value"),
        html.Div(id="output1")
    ]
)

@app.auto_callback()
def update_output1(input):
    return input

Detailed Names Automagic Callbacks

from easy_dash import EasyDash
import dash_html_components as html
import dash_core_components as dcc

app = EasyDash(__name__)
app.layout = html.Div(
    [
        dcc.Input(id="input", value="initial value"),
        html.Div(id="output1")
    ]
)

@app.auto_callback()
def update_children_of_output1(value_of_input):
    return value_of_input

About

A library for making Dash apps easier to build and particularly focusing on common data collection use cases

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages