Skip to content

Instantly share code, notes, and snippets.

View ibot3's full-sized avatar

Jakob Müller ibot3

  • TU Dresden
  • Germany
View GitHub Profile
@mtorromeo
mtorromeo / asgitowsgi.py
Last active November 12, 2021 11:42
Adapter to run an ASGI application in a WSGI server
import asyncio
import sys
from http import HTTPStatus
RESPONSE_STATUS_TEXT = {
code: str(code) for code in range(100, 600)
}
RESPONSE_STATUS_TEXT.update({