brython-runner:使用Brython在Web客户端上运行Python代码的Javascript库

时间:2021-05-07 05:38:43
【文件属性】:
文件名称:brython-runner:使用Brython在Web客户端上运行Python代码的Javascript库
文件大小:1.17MB
文件格式:ZIP
更新时间:2021-05-07 05:38:43
JavaScript 布莱顿·亚军 一个JavaScript库,该库在基于Web浏览器上运行Python 3代码。 Brython旨在替代Web中JavaScript; 它允许您使用Python 3代替JavaScript作为Web应用程序的脚本语言。 Brython通过将Python代码转换为等效JavaScript代码来做到这一点。 但是,如果要在Web应用程序中运行用户编写的Python代码,则并非如此简单。 为此,请使用Brython Runner 。 演示版 了解如何使用Brython Runner在浏览器上运行用户编写的Python 3代码; 它支持具有本地.py导入功能的input() , time.sleep(x)和文件系统。 如果您需要一个简单的示例,请参见我们的并查看brython-runner情况。 安装 Node.js $ npm install brython-runner 用
【文件预览】:
brython-runner-master
----index.html(4KB)
----yarn.lock(261KB)
----LICENSE.txt(1KB)
----index.css(1KB)
----webpack.config.js(933B)
----src()
--------browser.js(307B)
--------scripts()
--------core()
--------brython-runner.js(79B)
----babel.config.js(193B)
----lib()
--------scripts()
--------core()
--------brython-runner.js(349B)
--------brython-runner.bundle.js(5.13MB)
----.npmignore(2KB)
----gulpfile.js(1KB)
----.gitignore(2KB)
----readme.md(7KB)
----package.json(1KB)

网友评论