whirlwind:Tornado Web 的包装器,可将 Web 应用程序作为插件轻松运行-源码

上传者: 42139357 | 上传时间: 2021-07-10 16:03:42 | 文件大小: 13KB | 文件类型: ZIP
旋风 Tornado Web 的包装器,可将 Web 应用程序作为插件轻松运行。 如何使用它? 使用 Whirlwind 的最简单方法是实例化Application类和 plugins 目录,并使用run方法运行其实例。 import whirlwind.web my_app = whirlwind.web.Application('data/plugins') whirlwind.web.run(my_app) 如何编写插件并手动导入? 在您的 plugins 目录中,使用插件名称创建一个目录,即test_plugin在以下目录中: lib 、 static和templates 。 plugins 目录应包含类似的结构: 目录结构: ├── plugins/ │ ├── lib │ │ ├── test_plugin │ │ │ ├── __init

文件下载

资源详情

[{"title":"( 17 个子文件 13KB ) whirlwind:Tornado Web 的包装器,可将 Web 应用程序作为插件轻松运行-源码","children":[{"title":"whirlwind-master","children":[{"title":".pylintrc <span style='color:#111;'> 7.15KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"whirlwind","children":[{"title":"web.py <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 169B </span>","children":null,"spread":false}],"spread":true},{"title":"examples","children":[{"title":"index","children":[{"title":"index_demo.py <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"index_page_plugin","children":[{"title":"plugin.json <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":"index.py <span style='color:#111;'> 447B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 127B </span>","children":null,"spread":false}],"spread":true},{"title":"websocket","children":[{"title":"websocket_demo.py <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"echo_plugin","children":[{"title":"echo.html <span style='color:#111;'> 430B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"static","children":[{"title":"echo_plugin","children":[{"title":"echo.js <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"lib","children":[{"title":"echo_plugin","children":[{"title":"websocket.py <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"plugin.json <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 104B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 257B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"setup.py <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明