MCPcopy Index your code
hub / github.com/plotly/dash / __init__

Method __init__

dash/backends/_fastapi.py:119–134  ·  view source on GitHub ↗
(
        self,
        app: ASGIApp,
        dash_app: Dash,
        dash_server: FastAPIDashServer,
        before_request_funcs: list,
        after_request_func: Callable | None = None,
        enable_timing: bool = False,
    )

Source from the content-addressed store, hash-verified

117 """Consolidated middleware for all Dash/FastAPI integration needs."""
118
119 def __init__(
120 self,
121 app: ASGIApp,
122 dash_app: Dash,
123 dash_server: FastAPIDashServer,
124 before_request_funcs: list,
125 after_request_func: Callable | None = None,
126 enable_timing: bool = False,
127 ) -> None:
128 self.app = app
129 self.dash_app = dash_app
130 self.dash_server = dash_server
131 self.before_request_funcs = before_request_funcs
132 self.after_request_func = after_request_func
133 self.enable_timing = enable_timing
134 self._dev_tools_initialized = False
135
136 async def _initialize_dev_tools(self) -> None:
137 """Initialize dev tools from environment config on first run."""

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected