带龙卷风的restful框架
aiopyrestful的Python项目详细描述
github:aiopyrestful
这是pyrestful
高温
pyrestful是用tornado web服务器开发restful服务的api。
我们对上一个版本进行了修改,以改进它并使之更容易。
最后一个版本适用于Python2和3。
每小时
支持异步。
安装
pip install aiopyrestful
示例
importasynciofromaiopyrestful.restimportget,mediatypes@asyncio.coroutineasyncdefasync_fun():awaitasyncio.sleep(10)return'text'@get(_path='/configure',_produces=mediatypes.APPLICATION_JSON)@asyncio.coroutineasyncdefpost_configure(self):text=awaitasync_fun()return{'text':text}