PyWebIO v1.6.3 Documentationoutput operation Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data visualization address. backend (str): The current PyWebIO backend server implementation. The possible values are 'tornado', 'flask', 'django' , 'aiohttp' , 'starlette'. protocol (str): The communication protocol between type of request can be: When using Tornado, request is instance of tornado.httputil.HTTPServerRequest [https://www.tornadoweb.org/en/stable/httputil.html#tornado.httputil.HTTPServerR equest] When using0 码力 | 150 页 | 7.46 MB | 1 年前3
PyWebIO v1.6.3 Documentationoutput operation • Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization address. • backend (str): The current PyWebIO backend server implementation. The possible values are 'tornado', 'flask', 'django' , 'aiohttp' , 'starlette'. • protocol (str): The communication protocol between session. Depending on the backend server, the type of request can be: – When using Tornado, request is instance of tornado.httputil.HTTPServerRequest – When using Flask, request is instance of flask.Request0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.6.3 使用手册• 非声明式布局,布局方式简单高效 • 代码侵入性小,旧脚本代码仅需修改输入输出逻辑便可改造为 Web 服务 • 支持整合到现有的 Web 服务,目前支持与 Flask、Django、Tornado、aiohttp、FastAPI(Starlette) 框架集成 • 同时支持基于线程的执行模型和基于协程的执行模型 • 支持结合第三方库实现数据可视化 3 PyWebIO, 发布 1.6 server_host 不一致) 时有值. • user_ip (str): 用户的 ip 地址. • backend (str): 当前 PyWebIO 使用的后端 Server 实现. 可能出现的值有 'tornado' , 'flask' , 'django' , 'aiohttp' , 'starlette'. • protocol (str): PyWebIO 服务器与浏览器之间的通信协议。可能的值为 request (object): 创建当前会话时的 Web 请求对象. 根据 PyWebIO 使用的后端 Server 不同, request 的类型也不同: – 使用 Tornado 后端时, request 为 tornado.httputil.HTTPServerRequest 实例 – 使用 Flask 后端时, request 为 flask.Request 实例 – 使用 Django0 码力 | 123 页 | 1.72 MB | 1 年前3
PyWebIO v1.6.3 使用手册使用同步而不是基于回调的方式获取输入,代码编写逻辑更自然 非声明式布局,布局方式简单高效 代码侵入性小,旧脚本代码仅需修改输入输出逻辑便可改造为Web服务 支持整合到现有的Web服务,目前支持与Flask、Django、Tornado、 aiohttp、 FastAPI(Starlette)框架集成 同时支持基于线程的执行模型和基于协程的执行模型 支持结合第三方库实现数据可视化 Installation 稳定版: pip3 server_host 不一致)时有 值. user_ip (str): 用户的ip地址. backend (str): 当前PyWebIO使用的后端Server实现. 可能出现的值有 'tornado' , 'flask' , 'django' , 'aiohttp' , 'starlette'. protocol (str): PyWebIO服务器与浏览器之间的通信协议。可能的值 为 'websocket' 根据PyWebIO使 用的后端Server不同,request 的类型也不同: 使用Tornado后端时, request 为 tornado.httputil.HTTPServerRequest [https://www.tornadoweb.org/en/stable/httputil.html#tornado.httputil.HTTPServerR equest] 实例 使用Flask后端时0 码力 | 150 页 | 7.47 MB | 1 年前3
PyWebIO v1.2.3 Documentationoutput operation Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp framework Support for asyncio and coroutine Support data visualization with third-party with Flask, Tornado, Django and aiohttp web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aioh�p Need to add a RequestHandler to Tornado application: application: import tornado.ioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self):0 码力 | 119 页 | 7.43 MB | 1 年前3
PyWebIO v1.2.2 Documentationoutput operation Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp framework Support for asyncio and coroutine Support data visualization with third-party with Flask, Tornado, Django and aiohttp web frameworks. The integration methods of different web frameworks are as follows: Tornado Flask Django aioh�p Need to add a RequestHandler to Tornado application: application: import tornado.ioloop import tornado.web from pywebio.platform.tornado import webio_handler from pywebio import STATIC_PATH class MainHandler(tornado.web.RequestHandler): def get(self):0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.4.0 Documentationoutput operation Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data visualization address. backend (str): The current PyWebIO backend server implementation. The possible values are 'tornado', 'flask', 'django' , 'aiohttp' , 'starlette'. protocol (str): The communication protocol between type of request can be: When using Tornado, request is instance of tornado.httputil.HTTPServerRequest [https://www.tornadoweb.org/en/stable/httputil.html#tornado.httputil.HTTPServerR equest] When using0 码力 | 135 页 | 7.45 MB | 1 年前3
PyWebIO v1.3.2 Documentationoutput operation Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data visualization supports integration with Flask, Tornado, Django, aiohttp and FastAPI(Starlette) web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aioh�p FastAPI/Starle�e platform.tornado.webio_handler() to get the WebSocketHandler [https://www.tornadoweb.org/en/stable/websocket.html#tornado.websocket.WebSocketHandler] class for running PyWebIO applications in Tornado: import0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.0 Documentationoutput operation Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data visualization supports integration with Flask, Tornado, Django, aiohttp and FastAPI(Starlette) web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aioh�p FastAPI/Starle�e platform.tornado.webio_handler() to get the WebSocketHandler [https://www.tornadoweb.org/en/stable/websocket.html#tornado.websocket.WebSocketHandler] class for running PyWebIO applications in Tornado: import0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.1 Documentationoutput operation Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data visualization supports integration with Flask, Tornado, Django, aiohttp and FastAPI(Starlette) web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aioh�p FastAPI/Starle�e platform.tornado.webio_handler() to get the WebSocketHandler [https://www.tornadoweb.org/en/stable/websocket.html#tornado.websocket.WebSocketHandler] class for running PyWebIO applications in Tornado: import0 码力 | 133 页 | 7.44 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













