pyri-sandbox-源码

上传者: 42109125 | 上传时间: 2021-03-25 13:08:11 | 文件大小: 35KB | 文件类型: ZIP
PyRI开源示教器设备管理器 沙箱在“受限Python环境”中执行用户程序。 它还能够将块状程序编译为Python以便执行。 设置 应该使用以下命令将pyri-sandbox软件包安装到虚拟环境中: python3 -m pip install -e . 有关设置虚拟环境的更多信息,请参见 。 沙盒需要安装NodeJS和npm。 在Ubuntu上,运行: sudo apt-get install nodejs npm 安装NodeJS和npm后,运行以下命令来配置Blockly编译器: pyri-sandbox-service --install-blockly-compiler 启动 使用前, pyri-variable-storage服务必须正在运行。 参见 使用前, pyri-device-manager服务必须正在运行。 参见 要启动服务,请运行: pyri-sand

文件下载

资源详情

[{"title":"( 47 个子文件 35KB ) pyri-sandbox-源码","children":[{"title":"pyri-sandbox-master","children":[{"title":".gitignore <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"sandbox","children":[{"title":"test_pyri_restricting_transformer.py <span style='color:#111;'> 7.14KB </span>","children":null,"spread":false},{"title":"test_guards.py <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"guards_data","children":[{"title":"types.py.test <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"constants.py.test <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true},{"title":"restricted_transformer_data","children":[{"title":"attribute.py.test.res <span style='color:#111;'> 653B </span>","children":null,"spread":false},{"title":"bool_op.py.test.res <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"delete.py.test <span style='color:#111;'> 206B </span>","children":null,"spread":false},{"title":"for.py.test <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"call.py.test <span style='color:#111;'> 61B </span>","children":null,"spread":false},{"title":"subscript.py.test.res <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"with.py.test.res <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"bin_op.py.test.res <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"attribute.py.test <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":"unary_op.py.test <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":"try.py.test <span style='color:#111;'> 227B </span>","children":null,"spread":false},{"title":"generate_res.py <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"assign.py.test.res <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"try.py.test.res <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"compare_op.py.test.res <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"for.py.test.res <span style='color:#111;'> 491B </span>","children":null,"spread":false},{"title":"bin_op.py.test <span style='color:#111;'> 240B </span>","children":null,"spread":false},{"title":"compare_op.py.test <span style='color:#111;'> 237B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"call.py.test.res <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"unary_op.py.test.res <span style='color:#111;'> 384B </span>","children":null,"spread":false},{"title":"subscript.py.test <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"delete.py.test.res <span style='color:#111;'> 704B </span>","children":null,"spread":false},{"title":"bool_op.py.test <span style='color:#111;'> 83B </span>","children":null,"spread":false},{"title":"with.py.test <span style='color:#111;'> 45B </span>","children":null,"spread":false},{"title":"assign.py.test <span style='color:#111;'> 296B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"pyri","children":[{"title":"sandbox","children":[{"title":"pyri_sandbox.py <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"tech.pyri.sandbox.robdef <span style='color:#111;'> 759B </span>","children":null,"spread":false},{"title":"guards.py <span style='color:#111;'> 8.03KB </span>","children":null,"spread":false},{"title":"blockly_compiler.py <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"run_sandbox.py <span style='color:#111;'> 635B </span>","children":null,"spread":false},{"title":"robdef.py <span style='color:#111;'> 661B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"restricting_transformer.py <span style='color:#111;'> 13.74KB </span>","children":null,"spread":false},{"title":"__main__.py <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"blockly_compile.js <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"sandbox_functions.py <span style='color:#111;'> 477B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"config","children":[{"title":"pyri_sandbox_default_info.yml <span style='color:#111;'> 533B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE.txt <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 967B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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