PyWebIO v1.3.1 Documentationand output operation • Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support integration with Flask, Tornado, Django, aiohttp and FastAPI(Starlette) web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aiohttp FastAPI/Starlette application. Django Use pywebio.platform.django.webio_view() to get the view function for running PyWebIO applications in Django: # urls.py from django.urls import path from pywebio.platform.django import0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.1 Documentationinput and output operation Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data 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 Use Use pywebio.platform.django.webio_view() to get the view function for running PyWebIO applications in Django: # urls.py from django.urls import path from pywebio.platform.django import webio_view #0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.1 使用手册使用同步而不是基于回调的方式获取输入,代码编写逻辑更自然 非声明式布局,布局方式简单高效 代码侵入性小,旧脚本代码仅需修改输入输出逻辑便可改造为Web服务 支持整合到现有的Web服务,目前支持与Flask、Django、Tornado、 aiohttp、 FastAPI(Starlette)框架集成 同时支持基于线程的执行模型和基于协程的执行模型 支持结合第三方库实现数据可视化 Installation 稳定版: 可以将PyWebIO应用集成到现有的Python Web项目中,PyWebIO应用与Web项 目共用一个Web框架。目前支持与Flask、Tornado、Django、aiohttp和 FastAPI(Starlette) Web框架的集成。 不同Web框架的集成方法如下: Tornado Flask Django aioh�p FastAPI/Starle�e 使用 pywebio.platform.tornado.webio_handler() http://localhost/tool 即可打开 PyWebIO应用 使用 pywebio.platform.django.webio_view() 来获取在Django中运行 PyWebIO应用的视图函数: # urls.py from django.urls import path from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 132 页 | 7.45 MB | 1 年前3
PyWebIO v1.3.1 使用手册码编写逻辑更自然 • 非声明式布局,布局方式简单高效 • 代码侵入性小,旧脚本代码仅需修改输入输出逻辑便可改造为 Web 服务 • 支持整合到现有的 Web 服务,目前支持与 Flask、Django、Tornado、aiohttp、FastAPI(Starlette) 框架集成 • 同时支持基于线程的执行模型和基于协程的执行模型 • 支持结合第三方库实现数据可视化 3 PyWebIO 项目中,PyWebIO 应用与 Web 项目共用一个 Web 框架。目 前支持与 Flask、Tornado、Django、aiohttp 和 FastAPI(Starlette) Web 框架的集成。 不同 Web 框架的集成方法如下: Tornado Flask Django aiohttp FastAPI/Starlette Tornado 使用pywebio.platform http://localhost/tool 即可打开 PyWebIO 应用 Django 使用pywebio.platform.django.webio_view() 来获取在 Django 中运行 PyWebIO 应用的视图函数: # urls.py from django.urls import path from pywebio.platform.django import webio_view # `task_func`0 码力 | 111 页 | 1.70 MB | 1 年前3
PyWebIO v1.2.3 Documentationand output operation • Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp framework • Support for asyncio and coroutine • Support data visualization with supports integration with Flask, Tornado, Django and aiohttp web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aiohttp Tornado Need to add a RequestHandler http://localhost/tool to open the PyWebIO application. Django Need to add a route in urls.py: # urls.py from functools import partial from django.urls import path from django.views.static import serve from pywebio0 码力 | 92 页 | 1.32 MB | 1 年前3
PyWebIO v1.2.2 Documentationand output operation • Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp framework • Support for asyncio and coroutine • Support data visualization with supports integration with Flask, Tornado, Django and aiohttp web frameworks. The integration methods of different web frameworks are as follows: Tornado Flask Django aiohttp Tornado Need to add a RequestHandler http://localhost/tool to open the PyWebIO application. Django Need to add a route in urls.py: # urls.py from functools import partial from django.urls import path from django.views.static import serve from pywebio0 码力 | 92 页 | 1.35 MB | 1 年前3
PyWebIO v1.3.3 Documentationand output operation • Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support integration with Flask, Tornado, Django, aiohttp and FastAPI(Starlette) web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aiohttp FastAPI/Starlette application. Django Use pywebio.platform.django.webio_view() to get the view function for running PyWebIO applications in Django: # urls.py from django.urls import path from pywebio.platform.django import0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.0 Documentationand output operation • Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support integration with Flask, Tornado, Django, aiohttp and FastAPI(Starlette) web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aiohttp FastAPI/Starlette application. Django Use pywebio.platform.django.webio_view() to get the view function for running PyWebIO applications in Django: # urls.py from django.urls import path from pywebio.platform.django import0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.2 Documentationand output operation • Support integration into existing web services, currently supports Flask, Django, Tornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support integration with Flask, Tornado, Django, aiohttp and FastAPI(Starlette) web frameworks. The integration methods of those web frameworks are as follows: Tornado Flask Django aiohttp FastAPI/Starlette application. Django Use pywebio.platform.django.webio_view() to get the view function for running PyWebIO applications in Django: # urls.py from django.urls import path from pywebio.platform.django import0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.2.3 Documentationinput and output 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 supports integration 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 py from functools import partial from django.urls import path from django.views.static import serve from pywebio import STATIC_PATH from pywebio.platform.django import webio_view # `task_func` is PyWebIO0 码力 | 119 页 | 7.43 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













