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 #169

Merged
merged 5 commits into from
May 20, 2024
Merged

Flask integration #169

merged 5 commits into from
May 20, 2024

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
7 checks passed
@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.

2 participants