Questions tagged [quart]

Quart is a microframework for developing web applications using Python's asyncio library.

Quart is an evolution of the Flask API to work with Asyncio and to provide a number of features not present or possible in Flask.

Compatibility with the Flask API is, however, the main aim, which means that the Flask documentation is an additional useful source of help.

The latest documentation for Quart can be found here

Quart is developed on GitLab. You are very welcome to open issues or propose merge requests.

167 questions
0
votes
1 answer

Python3 Quart register_blueprint of python-healthz throws exception

I use flask and trying to migrate to quart in order to benefit from HTTP/2. I use flask-healthz for kubernetes readiness and liveness health checks. Is there any quart equivalent of flask-healthz? I am not sure it would work but trying to…
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
0
votes
0 answers

using pythonanywhere to host a quart web app

I'm trying to host my quart (aync flask) webapp on python anywhere. But whenever I run the site, I get this error: 2021-08-22 14:42:05,914: Error running WSGI application 2021-08-22 14:42:05,915: ModuleNotFoundError: No module named…
deeform
  • 25
  • 4
0
votes
1 answer

Running coroutines concurrently to a web server

I want to run a quart server alongside other coroutines. However, it seems that the server is blocking the event loop. The server responds to the requests, but neither the timing routine nor the queue processing routine are running. import…
Maxim Schmidt
  • 147
  • 12
0
votes
1 answer

Quart/Flask render_template return compact json

I'm using Quart (which essentially Flask for HTTP/2) to serve some JSON content. The JSON content resides in the templates/ directory in a pretty-print format, e.g. example.json { "key1": "value1", "list1": [ { "key2": "{{…
Rusty Lemur
  • 1,697
  • 1
  • 21
  • 54
0
votes
1 answer

Unable to access discord bot instance in quart lifecycle

I'm confused with regards to event loops, this might be a common question because it seems like people are using discord.py with quart. I'm trying to integrate discord.py, quart, and celery. I have a manage.py that looks like this. It exposes app,…
jseam
  • 1
  • 1
0
votes
0 answers

How to use inter-process communication (IPC)/websocket in django with discord.py and discord-ext-ipc

I'm currently using discord-ext-ipc as an inter-process communication (IPC) extension for discord.py and linked this with quart-discord. Quart is an asyncio reimplementation of Flask and can natively serve WebSockets and other asynchronous stuff. I…
Operator23
  • 29
  • 7
0
votes
1 answer

Python Quart Not rendering HTML correctly

I am rendering a page in Python Quart (as a blueprint) using: return await render_template(self.TEMPLATE_LOGIN_PAGE) The issue is that the error message is not rendering correctly - it's rendering No red colour Incorrect position Using Developer…
Swatcat
  • 73
  • 6
  • 21
  • 57
0
votes
0 answers

Flask-SqlAlchemy RuntimeError: No application found. Either work inside a view function or push an application context

I try to implement Flask-SqlAlchemy in a Quart application it MVC structure. So I want every Model Have its file and functions. This is my files: app.py __package__ = 'nini' from .setups import create_app from .db import db if __name__ ==…
matisa
  • 497
  • 3
  • 25
0
votes
1 answer

Safely awaiting two event sources in asyncio/Quart

Quart is a Python web framework which re-implements the Flask API on top of the asyncio coroutine system of Python. In my particular case, I have a Quart websocket endpoint which is supposed to have not just one source of incoming events, but two…
fameman
  • 3,451
  • 1
  • 19
  • 31
0
votes
0 answers

How to fix the Discord login loop in Quart

I seted up a Discord Dasboard for my Bot it runs perfactly on my computer but i tryed to run it on Heroku but, If i want to login it is going to log me in go to callback and go back to login because the discord.authorized gives False if you want to…
Retox
  • 3
  • 1
0
votes
1 answer

Hosting Quart Application On Vercel. Quart Not Found When Deploying

So I am trying to deploy my dashboard for my Discord Bot on Vercel and when I do, the deploy fails. It says cannot find package Quart. I have included this and its version in the requirements.txt file. Here is the text…
Spaxly
  • 1
  • 1
0
votes
1 answer

Python package repositories on CentOS/Ubuntu

I'm wondering how does it work with python package repositories for CentOS (and also other distributions) as I can't find any article about that. Where do python packages/version come from? My question comes from fact that I want to install python…
MiroJanosik
  • 675
  • 5
  • 30
0
votes
1 answer

Python Quart websocket, send data between two clients

Using Quart I am trying to receive data from one client via a websocket, then have the Quart websocket server send it to a different client via websocket. The two clients will be alone sharing the same url, other pairs of clients will have their own…
benarc
  • 3
  • 4
0
votes
1 answer

Running a Flask/Quart app with a Discord.py bot

I am trying to make a Discord bot that listens for a webhook and sends messages in a discord channel when it receives a ping from the webhook. It seems that due to the way threads work in python, I cannot run both the Quart server and the Discord.py…
0
votes
1 answer

How to make webpage render before taking request in Python Quart?

I was trying to create a register form which post the data to MySQL database. The code are @app.route('/register', methods=['GET', 'POST']) async def register(): conn = await aiomysql.connect(host=DB_HOST, port=DB_PORT, user=DB_USER,…
Gusbell
  • 3
  • 1