Skip to content

Commit 299e7cf

Browse files
committed
README section
1 parent a9a1179 commit 299e7cf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff 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
199200
program, 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

203219
The Dispatch CLI automatically configures the SDK, so manual configuration is

0 commit comments

Comments
 (0)