前端框架选型是企业提升开发效率与用户体验的关键因素
771
2022-10-30
Kyōkai是一个快速的异步Python服务器端Web框架
Kyōkai (境界)
This project will not be getting any more updates.
Kyōkai is a fast asynchronous Python server-side web framework. It is built upon asyncio and the Asphalt framework for an extremely fast web server.
Setting up a Kyōkai app is incredibly simple. Here's a simple server that echoes your client's headers:
import jsonfrom kyoukai import Kyoukai, HTTPRequestContextkyk = Kyoukai("example_app")@kyk.route("/")async def index(ctx: HTTPRequestContext): return json.dumps(dict(ctx.request.headers)), 200, {"Content-Type": "application/json"} kyk.run()
For more information, see the docs at https://mirai.veriny.tf.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~