Questions tagged [asgi]

ASGI stand for Asynchronous Server Gateway Interface (ASGI), a "spiritual successor to WSGI, intended to provide a standard interface between async-capable Python web servers, frameworks, and applications."

An ASGI app is a a double, asynchronous callable (scope and coroutine). The callable has send and receive awaitables, thus the ability to wait for incoming events and send outgoing events. Events essentially are dictionaries with a predefined format that form the basis of the standard.

Official ASGI documentation

212 questions
-1
votes
1 answer

enable cors in a nginx with reverse proxy to strawberry-graphql python app with asgi using daphne

I have a website that has the following setup: the client is an angular 14 project the server is a python app with strawberry for graphql using nginx as web server using asgi python script to run the app using daphne I'm having cors related errors…
ufk
  • 30,912
  • 70
  • 235
  • 386
-1
votes
2 answers

Flask logger does not work when served with an ASGI server like Uvicorn

I want to serve my Flask app with a ASGI server called Uvicorn. Turns out when I convert my app from wsgi to asgi (following instructions here https://flask.palletsprojects.com/en/2.0.x/deploying/asgi/) suddently app.logger function is undefined.…
1 2 3
14
15