Skip to content

Conversation

@chriso
Copy link
Contributor

@chriso chriso commented May 20, 2024

Flask is a popular WSGI framework with more downloads than FastAPI (a newer ASGI framework).

This PR adds support for integrating Dispatch with a Flask application:

from flask import Flask
from dispatch.flask import Dispatch

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

I used this as an opportunity to factor out common code from the three web integrations we have now.

@chriso chriso marked this pull request as ready for review May 20, 2024 01:43
@chriso chriso self-assigned this May 20, 2024
@chriso chriso merged commit fd42f89 into main May 20, 2024
@chriso chriso deleted the flask branch May 20, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants