THIS PROJECT IS CURRENTLY UNMAINTAINED
Google Cloud Functions support for ASGI.
Python 3.7
pip3 install grevillea
from grevillea import Grevillea
async def app(scope, receive, send):
await send(
{
"type": "http.response.start",
"status": 200,
"headers": [[b"content-type", b"text/plain; charset=utf-8"]],
}
)
await send({"type": "http.response.body", "body": b"Hello, world!"})
handler = Grevillea(app)