baguette:ASGI服务器的异步Web框架

时间:2021-04-18 05:52:08
【文件属性】:
文件名称:baguette:ASGI服务器的异步Web框架
文件大小:176KB
文件格式:ZIP
更新时间:2021-04-18 05:52:08
Python 法式长棍面包-异步Web框架 baguette是用于ASGI服务器的异步Web框架。 安装 需要Python 3.6或更高版本。 用点子安装baguette : pip install baguette 您还需要一个ASGI服务器来运行你的应用程序像或 。 要直接使用法式面包安装 ,可以添加uvicorn参数: pip install baguette[uvicorn] 快速开始 在example.py创建一个应用程序: from baguette import Baguette app = Baguette () @ app . endpoint ( "/" ) async def index ( request ): return "

Hello world

" 使用运行服务器: uvicorn example:app 有关更多部署选项,请参见。
【文件预览】:
baguette-master
----README.rst(2KB)
----docs()
--------.readthedocs.yml(550B)
--------quickstart.rst(651B)
--------api.rst(586B)
--------images()
--------conf.py(3KB)
--------extensions()
--------make.bat(760B)
--------intro.rst(2KB)
--------requirements.txt(49B)
--------Makefile(634B)
--------index.rst(2KB)
----.github()
--------workflows()
----tests()
--------conftest.py(247B)
--------__init__.py(0B)
--------test_app.py(219B)
----LICENSE(1KB)
----dev-requirements.txt(68B)
----setup.cfg(364B)
----requirements.txt(0B)
----examples()
--------minimal.py(433B)
--------api.py(1KB)
----setup.py(3KB)
----.gitignore(2KB)
----scripts()
--------format.sh(427B)
--------test.sh(173B)
--------lint.sh(513B)
----baguette()
--------app.py(4KB)
--------testing.py(4KB)
--------view.py(816B)
--------utils.py(398B)
--------request.py(2KB)
--------router.py(1KB)
--------httpexceptions.py(27KB)
--------types.py(733B)
--------headers.py(2KB)
--------__init__.py(451B)
--------response.py(2KB)

网友评论