Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Feature Idea: Support hypercorn + quart

tag

#1

Quart is a flask-like framework using Python3 asyncio, it’s usually executed on top of Hypercorn which is a gunicorn-like written on top of asyncio. On top of that there is https://github.com/factset/quart-openapi which provides RESTful-like support.

They focus on performance, performing slightly better than Sanic.


New Relic edit

  • I want this, too
  • I have more info to share (reply below)
  • I have a solution for this

0 voters

We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.


#2

Hi @barbieri! It sounds like you are requesting hypercorn + quart to be supported by New Relic? I would be happy to add a poll to your post so that others can express their interest as well! If you have any other context to share, or a use case to add, that would be very helpful! :blush: Thanks so much.


#3

Hi @linds, indeed that’s what I want.

Actually I did an initial version that is functional, I’ll see if I can opensource that with my client – There is no reason to not do it, since it’s almost the framework_flask.py (Quart API is identical to Flask, but calls are asynchronous) with adjustments similar to framework_aiohttp.py and framework_sanic.py to wrap the WebTransaction in a coroutine.

Aside from that, I also want (and did) the framework_aiodataloader.py, which is the Python version of the Facebook DataLoader, used to batch/cache resource requests (DB, HTTP, REST…). This one was a bit tricky since it uses “dispatch from mainloop” using a new context, and I had to wrap it in order to save/drop the transaction. With that it plays well with framework_aiohttp.py (which already exists).


#4

Excellent context, @barbieri! Thanks for coming back and explaining your needs in full. I will pass this additional input along!


#5

@Linds Is there support for Quart yet?


#6

Hi @michael.roth - No update currently on support for Quart. I’ll get your +1 logged internally.