Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask integration tests #171

Merged
merged 4 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
README section
chriso committed May 20, 2024

Verified

This commit was signed with the committer’s verified signature.
lukesmurray Luke Murray
commit 299e7cfeec6bedcf7177d7d0423b2abc9ac1e069
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ Python package to develop applications with the Dispatch platform.
- [Running Dispatch Applications](#running-dispatch-applications)
- [Writing Transactional Applications with Dispatch](#writing-transactional-applications-with-dispatch)
- [Integration with FastAPI](#integration-with-fastapi)
- [Integration with FastAPI](#integration-with-flask)
- [Configuration](#configuration)
- [Serialization](#serialization)
- [Examples](#examples)
@@ -198,6 +199,21 @@ In this example, GET requests on the HTTP server dispatch calls to the
`publish` function. The function runs concurrently to the rest of the
program, driven by the Dispatch SDK.

### Integration with Flask

Dispatch can also be integrated with web applications built on [Flask].

The API is nearly identical to FastAPI above, instead use:

```python
from dispatch.flask import Dispatch

app = Flask(__name__)
dispatch = Dispatch(app)
```

Flask: https://flask.palletsprojects.com/en/3.0.x/

### Configuration

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