File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ Python package to develop applications with the Dispatch platform.
2828 - [ Running Dispatch Applications] ( #running-dispatch-applications )
2929 - [ Writing Transactional Applications with Dispatch] ( #writing-transactional-applications-with-dispatch )
3030 - [ Integration with FastAPI] ( #integration-with-fastapi )
31+ - [ Integration with FastAPI] ( #integration-with-flask )
3132 - [ Configuration] ( #configuration )
3233 - [ Serialization] ( #serialization )
3334- [ Examples] ( #examples )
@@ -198,6 +199,21 @@ In this example, GET requests on the HTTP server dispatch calls to the
198199` publish ` function. The function runs concurrently to the rest of the
199200program, driven by the Dispatch SDK.
200201
202+ ### Integration with Flask
203+
204+ Dispatch can also be integrated with web applications built on [ Flask] .
205+
206+ The API is nearly identical to FastAPI above, instead use:
207+
208+ ``` python
209+ from dispatch.flask import Dispatch
210+
211+ app = Flask(__name__ )
212+ dispatch = Dispatch(app)
213+ ```
214+
215+ Flask: https://flask.palletsprojects.com/en/3.0.x/
216+
201217### Configuration
202218
203219The Dispatch CLI automatically configures the SDK, so manual configuration is
You can’t perform that action at this time.
0 commit comments