mangum:对ASGI的AWS Lambda和API网关支持-源码

上传者: 42120563 | 上传时间: 2021-02-02 03:35:29 | 文件大小: 47KB | 文件类型: ZIP
芒果 Mangum是将应用程序与AWS Lambda和API网关结合使用的适配器。 旨在为部署在AWS Lambda函数中的任何ASGI应用程序提供易于使用的可配置包装器,以处理API网关请求和响应。 文档: : 产品特点 API网关对和 API的支持。 与ASGI应用程序框架的兼容性,例如 , 和 。 使用GZip或Brotli在API网关中支持二进制媒体类型和有效负载压缩。 与现有的部署和配置工具一起使用,包括和 。 启动和关闭事件。 要求 Python 3.6+ 安装 pip install mangum 例 from mangum import Mangum async def app ( scope , receive , send ): await send ( { "type" : "http.response.start" , "status" : 200 , "headers" : [[ b"content-type" , b"text/plain; cha

文件下载

资源详情

[{"title":"( 49 个子文件 47KB ) mangum:对ASGI的AWS Lambda和API网关支持-源码","children":[{"title":"mangum-master","children":[{"title":".travis.yml <span style='color:#111;'> 222B </span>","children":null,"spread":false},{"title":".coveragerc <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"websockets.md <span style='color:#111;'> 7.81KB </span>","children":null,"spread":false},{"title":"asgi-frameworks.md <span style='color:#111;'> 7.24KB </span>","children":null,"spread":false},{"title":"external-links.md <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"CNAME <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"release-notes.md <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"adapter.md <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"lifespan.md <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"http.md <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"index.md <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"pytest.ini <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"mangum","children":[{"title":"websocket.py <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false},{"title":"py.typed <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"adapter.py <span style='color:#111;'> 5.77KB </span>","children":null,"spread":false},{"title":"protocols","children":[{"title":"lifespan.py <span style='color:#111;'> 7.58KB </span>","children":null,"spread":false},{"title":"http.py <span style='color:#111;'> 5.71KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 1B </span>","children":null,"spread":false},{"title":"websockets.py <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false}],"spread":true},{"title":"types.py <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":"backends","children":[{"title":"redis.py <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"postgresql.py <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"dynamodb.py <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"s3.py <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"sqlite.py <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"base.py <span style='color:#111;'> 947B </span>","children":null,"spread":false}],"spread":true},{"title":"config.py <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false},{"title":"exceptions.py <span style='color:#111;'> 650B </span>","children":null,"spread":false}],"spread":true},{"title":"mkdocs.yml <span style='color:#111;'> 650B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_websockets.py <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"test_backends.py <span style='color:#111;'> 6.21KB </span>","children":null,"spread":false},{"title":"conftest.py <span style='color:#111;'> 11.30KB </span>","children":null,"spread":false},{"title":"test_http.py <span style='color:#111;'> 24.53KB </span>","children":null,"spread":false},{"title":"test_lifespan.py <span style='color:#111;'> 9.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"setup.cfg <span style='color:#111;'> 215B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":".codecov.yml <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"scripts","children":[{"title":"test <span style='color:#111;'> 325B </span>","children":null,"spread":false},{"title":"publish <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"lint <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 266B </span>","children":null,"spread":false},{"title":"setup <span style='color:#111;'> 78B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明