一个基于超库的asgi服务器,灵感来自gunicorn。
Hypercorn的Python项目详细描述
hypercorn是一个ASGI网络 基于sans io hyper、h11、h2和wsproto库的服务器,灵感来自 古尼科恩。hypercorn支持http/1、http/2、websockets(通过http/1 以及http/2)、asgi/2和asgi/3规范。hypercorn可以利用 异步、uvloop或三个工作类型。
hypercorn可以选择服务于http/3的当前草稿 使用aioquic库的规范。启用此安装 h3可选额外,pip install hypercorn[h3]然后 选择一个quic绑定,例如hypercorn --quic-bind localhost:4433 ...。
hypercorn最初是Quart的一部分,后来被分离成 独立的asgi服务器。从夸脱的0.5.0版叉出的深褐色。
快速启动
$ pipenv install hypercorn $ pip install hypercorn
需要Python3.7.0或更高版本。
安装了hypercorn的asgi框架(或应用程序)可以通过 通过命令行执行hypercorn,
$ hypercorn module:app
贡献
hypercorn是在GitLab上开发的。如果你遇到问题, 或者有功能请求,请打开issue。如果你想的话 请提供修复或功能实现(排版修复 欢迎),通过提议一个merge request。
帮助
超华丽的documentation 是最好的开始,然后尝试搜索堆栈溢出, 如果你仍然找不到答案,请open an issue。