支持ASGI的Google Cloud Functions
项目描述
grevillea
工作进行中
支持ASGI的Google Cloud Functions
需求
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)
项目详情
关闭
grevillea-0.0.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 5e6119c380d0a7deb55a3eb25dc812e65789d7633fe8af652e6f45afecc65f23 |
|
MD5 | 7fd3bbaacb85c3bdadeb063652b5c2cb |
|
BLAKE2b-256 | 4a9e233b039bf03b479a1de7e062146441735d8e0e9c0c0298ce8dcf597e6f8d |