文件名称:sanic-dispatcher:Sanic的Dispatcher扩展,还可以用作Sanic到WSGI的适配器
文件大小:16KB
文件格式:ZIP
更新时间:2024-05-23 09:08:01
plugin sanic python-3-6 python3 python-3-5
Sanic-派遣者 Sanic的Dispatcher扩展,还可以用作Sanic到WSGI的适配器 允许您执行以下操作:(严重) from sanic import Sanic , response from sanic_dispatcher import SanicDispatcherMiddlewareController from flask import Flask , make_response , current_app as flask_app app = Sanic ( __name__ ) dispatcher = SanicDispatcherMiddlewareController ( app ) child_sanic_app = Sanic ( "MyChildSanicApp" ) child_flask_app = Flask ( "MyChildFlaskA
【文件预览】:
sanic-dispatcher-master
----setup.py(2KB)
----.gitignore(37B)
----requirements.txt(13B)
----.travis.yml(2KB)
----LICENCE(1KB)
----setup.cfg(31B)
----examples()
--------test1.py(2KB)
----README.md(6KB)
----sanic_dispatcher()
--------__init__.py(411B)
--------extension.py(30KB)
--------version.py(50B)
----test()
--------conftest.py(1KB)
--------test_basic.py(5KB)
----requirements-dev.txt(22B)
----tox.ini(828B)