spec-first / connexion

Connexion is a modern Python web framework that makes spec-first and api-first development easy.
https://connexion.readthedocs.io/en/latest/
Apache License 2.0
4.47k stars 758 forks source link

Support for sanic/starlette framework or async/await #496

Closed sharkguto closed 1 year ago

sharkguto commented 7 years ago

Description

It would be nice if we can support both , Flask and Sanic frameworks.

I did not found any example to do async requests in documentation. Someone tried to use uvloop with connexion?

mvalkon commented 7 years ago

@sharkguto there's a development effort in progress to move towards a framework agnostic approach for Connexion in #380. If you're interested in contributing, you can take a look at #394 which implements the basic decoupling and adds Flask as one implementation.

ralsina commented 6 years ago

Just because I looked and in case someone sees this issue and wants to do it:

394 is merged and other than a missing Blueprint.add_url_rule in sanic ... this seems very doable.

cognifloyd commented 5 years ago

...I looked and in case someone sees this issue and wants to do it: ... a missing Blueprint.add_url_rule in sanic ...

@ralsina did your looking include writing code? Is that pre-alpha WIP code available somewhere?

ralsina commented 5 years ago

I did write some code but never got it working properly and gave up.

On Sat, Mar 23, 2019, 22:51 Jacob Floyd notifications@github.com wrote:

...I looked and in case someone sees this issue and wants to do it: ... a missing Blueprint.add_url_rule in sanic ...

@ralsina https://github.com/ralsina did your looking include writing code? Is that pre-alpha WIP code available somewhere?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zalando/connexion/issues/496#issuecomment-475920526, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAGK_ULtwyOVNRttfxRoqBWfRAGN31Jks5vZtoBgaJpZM4OlgIT .

sharkguto commented 4 years ago

I did write some code but never got it working properly and gave up. On Sat, Mar 23, 2019, 22:51 Jacob Floyd @.***> wrote: ...I looked and in case someone sees this issue and wants to do it: ... a missing Blueprint.add_url_rule in sanic ... @ralsina https://github.com/ralsina did your looking include writing code? Is that pre-alpha WIP code available somewhere? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#496 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAGK_ULtwyOVNRttfxRoqBWfRAGN31Jks5vZtoBgaJpZM4OlgIT .

same thing here, but i am trying to do with starlette from now....

RobbeSneyders commented 1 year ago

async / await and third party ASGI frameworks are supported starting 3.0. see https://github.com/spec-first/connexion/issues/1395