asyncweb:基于aiohttp的web后端

时间:2021-05-08 15:43:06
【文件属性】:
文件名称:asyncweb:基于aiohttp的web后端
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-08 15:43:06
async aiohttp-web Python Asynchronous restful API 特色 ✓ 基于aiohttp的异步web后端,实现了路由层和视图层 ✓ 使用设计较友好 安装 pip install asyncweb 开始使用 “asyncweb”允许您在几个步骤中快速创建一个rest资源。 它自动在集合或单个项上创建资源路由;只需在方法上指定'_collection'或'_item'后缀即可。 使用python字典,结果/请求的序列化/反序列化是透明的。 使用案例 from aiohttp import web from asyncweb import RestView, routes @routes.resource("/views") class RestResource(RestView): # example call: GET to /views?start=10 async
【文件预览】:
asyncweb-master
----asyncweb()
--------__init__.py(176B)
--------routers.py(2KB)
--------views.py(1KB)
----requirements.txt(7B)
----setup.py(967B)
----README.md(2KB)

网友评论