Building support for decoupling Dash from Flask and supporting Quart / FastAPI servers#3430
Open
BSd3v wants to merge 122 commits intoplotly:devfrom
Open
Building support for decoupling Dash from Flask and supporting Quart / FastAPI servers#3430BSd3v wants to merge 122 commits intoplotly:devfrom
BSd3v wants to merge 122 commits intoplotly:devfrom
Conversation
work to modularize the dash eco-system and decouple from Flask
∙ - added types to BaseFactory to remove linting errors on create app in Flask and Quart Factory
… `request` context
|
Just came here to comment that this is very exciting :) |
LiamConnors
reviewed
Feb 6, 2026
Comment on lines
+247
to
+249
| :param backend: The backend to use for the Dash app. Can be a string | ||
| (name of the backend) or a backend class. Default is None, which | ||
| selects the Flask backend. Currently, "flask", "fastapi", and "quart" backends |
Member
There was a problem hiding this comment.
Does the server param docstring above need an update too?
Question - For the difference between the too - is it you'd use server if you want Dash to use an existing instance of the server? vs backend if you want Dash to create the instance?
Contributor
Author
There was a problem hiding this comment.
Yes, I believe so.
You should be able to pass a preconfigured server of any of the supported types.
Contributor
|
@BSd3v This is looking good, I have made some significant changes to the fastapi implementation. The config is now transfered via environment variable and I merged all the middlewares into one. Could you review those changes, then we can merge and release a rc version 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an open PR draft, to contribute please target my forked branch.
The goal of this PR is to modularize the Dash setup to be independent of Flask (will fallback to Flask) and allow devs to configure their own backend.
fixes #1571