一个ASGI Gunicorn worker 类-python

时间:2021-06-18 18:27:42
【文件属性】:
文件名称:一个ASGI Gunicorn worker 类-python
文件大小:536KB
文件格式:ZIP
更新时间:2021-06-18 18:27:42
其它杂项 An ASGI Gunicorn worker class,一个ASGI Gunicorn worker 类 闪电般快速的 ASGI 服务器。 文档:https://www.uvicorn.org 社区:https://discuss.encode.io/c/uvicorn 要求:Python 3.6+(对于 Python 3.5 支持,安装 0.8.6 版。)Uvicorn 是闪电般的ASGI 服务器实现,使用 uvloop 和 httptools。 直到最近,Python 还缺乏用于 asyncio 框架的最小的低级服务器/应用程序接口。 ASGI 规范填补了这一空白,这意味着我们现在可以开始构建一组可用于所有 asyncio 框架的通用工具。 Uvicorn 目前支持 HTTP/1.1 和 WebSockets。 计划支持 HTTP/2。 快速入门 使用 pip 安装: $ pip install uvicorn 创建一个应用,在 example.py 中: async def app(scope, receive, send): assert scope['type
【文件预览】:
uvicorn-master
----MANIFEST.in(70B)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----scripts()
--------install(335B)
--------publish(591B)
--------lint(322B)
--------build(185B)
--------test(252B)
--------docs(104B)
--------check(367B)
--------coverage(203B)
----requirements.txt(302B)
----mkdocs.yml(485B)
----tools()
--------cli_usage.py(2KB)
----setup.cfg(2KB)
----LICENSE.md(1KB)
----setup.py(3KB)
----README.md(3KB)
----uvicorn()
--------logging.py(4KB)
--------config.py(14KB)
--------loops()
--------supervisors()
--------protocols()
--------main.py(11KB)
--------middleware()
--------workers.py(3KB)
--------__init__.py(147B)
--------importer.py(1KB)
--------server.py(10KB)
--------__main__.py(62B)
--------subprocess.py(2KB)
--------_handlers()
--------lifespan()
----docs()
--------settings.md(6KB)
--------index.md(16KB)
--------server-behavior.md(6KB)
--------js()
--------CNAME(16B)
--------uvicorn.png(428KB)
--------deployment.md(13KB)
----tests()
--------test_cli.py(740B)
--------test_config.py(9KB)
--------supervisors()
--------protocols()
--------utils.py(514B)
--------test_main.py(2KB)
--------importer()
--------response.py(1KB)
--------middleware()
--------__init__.py(0B)
--------test_lifespan.py(7KB)
--------test_ssl.py(2KB)
--------conftest.py(2KB)
--------test_default_headers.py(3KB)
--------test_auto_detection.py(2KB)
----.gitignore(82B)
----CHANGELOG.md(7KB)

网友评论