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
1
vote
1 answer

Hypercorn Name does not resolve in Docker

I am trying to test my Quart application (pager) that connects to a MySQL instance in a docker container called master-db, but after a few retries I get a hypercorn error: pager | Traceback (most recent call last): pager | File…
Swatcat
  • 73
  • 6
  • 21
  • 57
1
vote
1 answer

Python Quart Unable to shutdown background task

I am working on a Python app, but I am moving from Flask to Quart. The application needs a background task that runs constantly whilst the application is running. When I try to stop the process using control-c, the thread doesn't close cleanly and…
Swatcat
  • 73
  • 6
  • 21
  • 57
1
vote
1 answer

Basic auth for Quart - python

I'm looking for using basic auth on Quart. I'm aware that quart-auth is available but it supports only cookies based authentication. Is there a way to use basic auth without resorting to use flask patch with Flask-BasicAuth ?
Vijay
  • 1,030
  • 11
  • 34
1
vote
1 answer

Discord.py bot + Quart: Trying to connect to a voice channel always gives a "task got future attached to a different loop"

i've been trying to create a discord bot that can receive commands through a web interface. I'm using discord.py as a Discord API wrapper and Quart as a REST framework, because i need to handle asynchronous tasks and Flask doesn't support…
KylesDev
  • 99
  • 1
  • 1
  • 9
1
vote
1 answer

Quart python : send websocket broadcast message from curl and display it

i have edited this way: my curl command is: curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://localhost:5000/telepath i want to display this posted data on every clients. i grabed what i can on…
laticoda
  • 100
  • 14
1
vote
1 answer

How to use logging in Python Quart route handler?

I'm new to hypercorn+uvloop+quart. I'm trying to create following files and print some info/debug log in the route handler but nothing shows up. I have debugged into the route handler and noticed the dog_server.logger.disabled = True. Does anyone…
NonStatic
  • 951
  • 1
  • 8
  • 27
1
vote
0 answers

Fetching Request param in Python Quart

I am trying to convert my flask app to Quart ASGI, facing an issue when try to fetch request param/argument. It gives an error when normal request is used with Quart Example: @app.route('/') async def hello(): return…
1
vote
2 answers

asyncio.Queue as producer-consumer flow in a webserver like Quart

Is it possible to use asyncio.Queue with a webserver like Quart to communicate between the producer and consumer? Here is what I am trying to do.... from quart import Quart, request import asyncio queue = asyncio.Queue() producers = [] consumers =…
Kumar1988
  • 13
  • 1
  • 3
1
vote
1 answer

How to use Custom table name for Quartz tables in spring boot

I am using quartz with spring boot 2.x. Can I use custom table names and custom column names for the given quartz tables? I can prefix, but my requirement is to change the name of the table. If yes, then how can I keep the sync. Ex: instead of…
1
vote
1 answer

Bidirectional communiation with websockets in Quart

I want to be able to use a WebSocket in Quart to receive any messages that are sent, and send any messages that I may need to send. There's no guarantee that messages will alternate between sending and receiving. As an example, Quart's tutorial page…
jarhill0
  • 1,559
  • 1
  • 11
  • 19
1
vote
0 answers

How to authenticate Quart websockets?

From a medium article by the creator of Quart: https://medium.com/@pgjones/websockets-in-quart-f2067788d1ee : Authentication The ability to control the acceptance is most useful when authorising requests, as it allows the request headers to be…
jsstuball
  • 4,104
  • 7
  • 33
  • 63
1
vote
1 answer

Discord OAUTH on Quart recieving InsecureTransportError even with an SSL certificate

Recently I have been working on a website project that allows users to login with their Discord accounts to browse the website with their account. The website utilizes the Flask-Discord library, Quart as my WSGI web framework, Hypercorn as my…
1
vote
1 answer

uploading files to a quart based server

I'm trying to convert my Flask server to Quart. I have a form with file inputs in it, which I send over to the server. It used to work perfectly with Flask, but now I fail to send the files over. Here's the code which worked: app =…
feature_engineer
  • 1,088
  • 8
  • 16
1
vote
2 answers

Flask - Getting 404 on some routes inconsistently

The problem is simple #This works @app.route("/projects") def user_home(): return 'projects' #This works @app.route("/projects/new", methods=["GET", "POST"]) def create_project(): return 'new project' #This…
Mojimi
  • 2,561
  • 9
  • 52
  • 116
1
vote
1 answer

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch?

2019-07-21 10:56:02.514949 app[web.1]: Exception in thread Thread-2: 2019-07-21 10:56:02.514963 app[web.1]: Traceback (most recent call last): 2019-07-21 10:56:02.514965 app[web.1]: File…
Smart Manoj
  • 5,230
  • 4
  • 34
  • 59