APIFairy icon indicating copy to clipboard operation
APIFairy copied to clipboard

Quart Support

Open collinsmarra opened this issue 1 year ago • 3 comments

I like the way you write your APIs and I always use microblog-api as my inspiration. I recently came across Quart and I decided to use it and will probably be using it going on. I completed one project with Quart while using your 'style' and your extensions as Quart allows one to use some Flask extensions with recently quart_flask_patch and before quart.quart_flask_patch. But since upgrading to Quart>=0.19.0 some extensions like APIFairy are not compatible. I was wondering if there are plans to add quart support here or someone from the community can do it in a separate repisitory

collinsmarra avatar Mar 12 '24 10:03 collinsmarra

I don't have plans to support Quart at this time, sorry. My understanding is that most Flask extensions do not work well with Quart, so I'm surprised this one worked at all at some point.

miguelgrinberg avatar Mar 12 '24 10:03 miguelgrinberg

Also, Flask-HTTPAuth and Alchemical worked. Alchemical still works. I modified Flask-HTTPAuth to create Quart-HTTPAuth. I see APIFairy use Flask-HTTPAuth so maybe that will be a good start,

collinsmarra avatar Mar 13 '24 06:03 collinsmarra

Alchemical is framework agnostic and has native support for asyncio, so yes, that should work just fine not only with Quart but also with FastAPI or any other async framework.

miguelgrinberg avatar Mar 13 '24 09:03 miguelgrinberg