 PyWebIO v1.3.3 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After FastAPI/Starlette Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWe- bIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi fastapi import FastAPI from pywebio.platform.fastapi import webio_routes (continues on next page) 4.1. User’s guide 23 PyWebIO, Release 1.3.3 (continued from previous page) app = FastAPI() @app.get("/app")0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.3 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After FastAPI/Starlette Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWe- bIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi fastapi import FastAPI from pywebio.platform.fastapi import webio_routes (continues on next page) 4.1. User’s guide 23 PyWebIO, Release 1.3.3 (continued from previous page) app = FastAPI() @app.get("/app")0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.1 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After FastAPI/Starlette Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWe- bIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi fastapi import FastAPI from pywebio.platform.fastapi import webio_routes (continues on next page) 4.1. User’s guide 23 PyWebIO, Release 1.3.1 (continued from previous page) app = FastAPI() @app.get("/app")0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.1 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After FastAPI/Starlette Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWe- bIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi fastapi import FastAPI from pywebio.platform.fastapi import webio_routes (continues on next page) 4.1. User’s guide 23 PyWebIO, Release 1.3.1 (continued from previous page) app = FastAPI() @app.get("/app")0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.0 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After FastAPI/Starlette Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWe- bIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi fastapi import FastAPI from pywebio.platform.fastapi import webio_routes (continues on next page) 4.1. User’s guide 23 PyWebIO, Release 1.3.0 (continued from previous page) app = FastAPI() @app.get("/app")0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.0 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After FastAPI/Starlette Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWe- bIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi fastapi import FastAPI from pywebio.platform.fastapi import webio_routes (continues on next page) 4.1. User’s guide 23 PyWebIO, Release 1.3.0 (continued from previous page) app = FastAPI() @app.get("/app")0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.2 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After FastAPI/Starlette Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWe- bIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi fastapi import FastAPI from pywebio.platform.fastapi import webio_routes (continues on next page) 4.1. User’s guide 23 PyWebIO, Release 1.3.2 (continued from previous page) app = FastAPI() @app.get("/app")0 码力 | 100 页 | 1.34 MB | 1 年前3 PyWebIO v1.3.2 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After FastAPI/Starlette Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWe- bIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi fastapi import FastAPI from pywebio.platform.fastapi import webio_routes (continues on next page) 4.1. User’s guide 23 PyWebIO, Release 1.3.2 (continued from previous page) app = FastAPI() @app.get("/app")0 码力 | 100 页 | 1.34 MB | 1 年前3
 PyWebIO v1.3.2 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After configuration. Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWebIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi import webio_routes app = FastAPI() @app.get("/app") def read_main(): return {"message": "Hello World from main app"} # `task_func` is PyWebIO task function app.mount("/tool", FastAPI(routes=webio_routes(task_func)))0 码力 | 133 页 | 7.44 MB | 1 年前3 PyWebIO v1.3.2 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After configuration. Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWebIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi import webio_routes app = FastAPI() @app.get("/app") def read_main(): return {"message": "Hello World from main app"} # `task_func` is PyWebIO task function app.mount("/tool", FastAPI(routes=webio_routes(task_func)))0 码力 | 133 页 | 7.44 MB | 1 年前3
 PyWebIO v1.3.0 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After configuration. Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWebIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi import webio_routes app = FastAPI() @app.get("/app") def read_main(): return {"message": "Hello World from main app"} # `task_func` is PyWebIO task function app.mount("/tool", FastAPI(routes=webio_routes(task_func)))0 码力 | 133 页 | 7.44 MB | 1 年前3 PyWebIO v1.3.0 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After configuration. Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWebIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi import webio_routes app = FastAPI() @app.get("/app") def read_main(): return {"message": "Hello World from main app"} # `task_func` is PyWebIO task function app.mount("/tool", FastAPI(routes=webio_routes(task_func)))0 码力 | 133 页 | 7.44 MB | 1 年前3
 PyWebIO v1.4.0 Documentationaiofiles websockets pywebio.platform.fastapi.webio_routes(applications, cdn=True, allowed_origins=None, check_origin=None) Get the FastAPI/Starlette routes for running PyWebIO applications. The API communicates WebSocket protocol. The arguments of webio_routes() have the same meaning as for pywebio.platform.fastapi.start_server() New in version 1.3. FastAPI/Starlette routes pywebio.platform.fastapi.asgi_app(applications starlette/Fastapi ASGI app for running PyWebIO applications. Use pywebio.platform.fastapi.webio_routes() if you prefer handling static files yourself. The arguments of asgi_app() have the same meaning0 码力 | 135 页 | 7.45 MB | 1 年前3 PyWebIO v1.4.0 Documentationaiofiles websockets pywebio.platform.fastapi.webio_routes(applications, cdn=True, allowed_origins=None, check_origin=None) Get the FastAPI/Starlette routes for running PyWebIO applications. The API communicates WebSocket protocol. The arguments of webio_routes() have the same meaning as for pywebio.platform.fastapi.start_server() New in version 1.3. FastAPI/Starlette routes pywebio.platform.fastapi.asgi_app(applications starlette/Fastapi ASGI app for running PyWebIO applications. Use pywebio.platform.fastapi.webio_routes() if you prefer handling static files yourself. The arguments of asgi_app() have the same meaning0 码力 | 135 页 | 7.45 MB | 1 年前3
 PyWebIO v1.3.1 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After configuration. Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWebIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi import webio_routes app = FastAPI() @app.get("/app") def read_main(): return {"message": "Hello World from main app"} # `task_func` is PyWebIO task function app.mount("/tool", FastAPI(routes=webio_routes(task_func)))0 码力 | 133 页 | 7.44 MB | 1 年前3 PyWebIO v1.3.1 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After configuration. Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWebIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi import webio_routes app = FastAPI() @app.get("/app") def read_main(): return {"message": "Hello World from main app"} # `task_func` is PyWebIO task function app.mount("/tool", FastAPI(routes=webio_routes(task_func)))0 码力 | 133 页 | 7.44 MB | 1 年前3
 PyWebIO v1.3.3 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After configuration. Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWebIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi import webio_routes app = FastAPI() @app.get("/app") def read_main(): return {"message": "Hello World from main app"} # `task_func` is PyWebIO task function app.mount("/tool", FastAPI(routes=webio_routes(task_func)))0 码力 | 133 页 | 7.44 MB | 1 年前3 PyWebIO v1.3.3 Documentationaiohttp import webio_handler app = web.Application() # `task_func` is PyWebIO task function app.add_routes([web.get('/tool', webio_handler(task_func))]) web.run_app(app, host='localhost', port=80) After configuration. Use pywebio.platform.fastapi.webio_routes() to get the FastAPI/Starlette routes for running PyWebIO applications. You can mount the routes to your FastAPI/Starlette app. FastAPI: from fastapi import webio_routes app = FastAPI() @app.get("/app") def read_main(): return {"message": "Hello World from main app"} # `task_func` is PyWebIO task function app.mount("/tool", FastAPI(routes=webio_routes(task_func)))0 码力 | 133 页 | 7.44 MB | 1 年前3
 PyWebIO v1.6.1 Documentationaiofiles websockets pywebio.platform.fastapi.webio_routes(applications, cdn=True, allowed_origins=None, check_origin=None) Get the FastAPI/Starlette routes for running PyWebIO applications. The API communicates protocol. The arguments of webio_routes() have the same meaning as for pywebio.platform.fastapi. start_server() New in version 1.3. Returns FastAPI/Starlette routes pywebio.platform.fastapi.asgi_app(applications starlette/Fastapi ASGI app for running PyWebIO applications. Use pywebio.platform.fastapi.webio_routes() if you prefer handling static files yourself. The arguments of asgi_app() have the same meaning0 码力 | 108 页 | 1.37 MB | 1 年前3 PyWebIO v1.6.1 Documentationaiofiles websockets pywebio.platform.fastapi.webio_routes(applications, cdn=True, allowed_origins=None, check_origin=None) Get the FastAPI/Starlette routes for running PyWebIO applications. The API communicates protocol. The arguments of webio_routes() have the same meaning as for pywebio.platform.fastapi. start_server() New in version 1.3. Returns FastAPI/Starlette routes pywebio.platform.fastapi.asgi_app(applications starlette/Fastapi ASGI app for running PyWebIO applications. Use pywebio.platform.fastapi.webio_routes() if you prefer handling static files yourself. The arguments of asgi_app() have the same meaning0 码力 | 108 页 | 1.37 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9














