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.
28
28
- [ Running Dispatch Applications] ( #running-dispatch-applications )
29
29
- [ Writing Transactional Applications with Dispatch] ( #writing-transactional-applications-with-dispatch )
30
30
- [ Integration with FastAPI] ( #integration-with-fastapi )
31
+ - [ Integration with FastAPI] ( #integration-with-flask )
31
32
- [ Configuration] ( #configuration )
32
33
- [ Serialization] ( #serialization )
33
34
- [ Examples] ( #examples )
@@ -198,6 +199,21 @@ In this example, GET requests on the HTTP server dispatch calls to the
198
199
` publish ` function. The function runs concurrently to the rest of the
199
200
program, driven by the Dispatch SDK.
200
201
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
+
201
217
### Configuration
202
218
203
219
The Dispatch CLI automatically configures the SDK, so manual configuration is
You can’t perform that action at this time.
0 commit comments