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

Any ideas to migrate Connexion to Quart base? #889

Closed
lovesuper opened this issue Feb 28, 2019 · 4 comments
Closed

Any ideas to migrate Connexion to Quart base? #889

lovesuper opened this issue Feb 28, 2019 · 4 comments

Comments

@lovesuper
Copy link

Description

Quart is a Python ASGI web microframework. It is intended to provide the easiest way to use asyncio functionality in a web context, especially with existing Flask apps. This is possible as the Quart API is a superset of the Flask API.

Expected behaviour

We can obtain async behaviour.

Actual behaviour

We have sync behaviour.

Additional info:

https://github.com/pgjones/quart

@dtkav
Copy link
Collaborator

dtkav commented Mar 2, 2019

Hey @lovesuper
There's a related issue about trying to fix the aiohttp interface to work with existing tests. I believe the goal of this work was also to eventually add quart support: #828

@prabhu
Copy link

prabhu commented Mar 5, 2019

+1 and +1 for doing Quart separately from aiohttp if possible.

Meanwhile, does connexion work well with aiohttp? I couldn't find much example and was facing a number of errors when trying to port a microservice and always thought it was me!

@SpudInNZ
Copy link

SpudInNZ commented Mar 6, 2019

Meanwhile, does connexion work well with aiohttp? I couldn't find much example and was facing a number of errors when trying to port a microservice and always thought it was me!

By and large it works well. But you'll be digging into the source code at times to figure things out, because the documentation is sparse and oftentimes you can't tell if the docs are referring to something that only applies to Flask. It certainly feels like there is friction where Connexion has been adapted to an async model too, processing security headers is synchronous for example.

@RobbeSneyders
Copy link
Member

Third party ASGI frameworks are supported starting 3.0: #1395

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants