Python Sandbox (#4380)

* Python3 Sandbox (#3944)

* update python box (#4251)

* update python box

* Adjust the height of the NodeCode border.

* update python sandbox and add test systemcall bash

* update sandbox

* add VERSION_RELEASE (#4376)

* save empty docx

* fix pythonbox log error

* fix: js template

---------

Co-authored-by: dogfar <37035781+dogfar@users.noreply.github.com>
Co-authored-by: gggaaallleee <91131304+gggaaallleee@users.noreply.github.com>
Co-authored-by: gggaaallleee <1293587368@qq.com>
This commit is contained in:
Archer
2025-03-28 13:45:09 +08:00
committed by GitHub
parent 8323c2d27e
commit 565a966d19
23 changed files with 777 additions and 92 deletions

View File

@@ -2,5 +2,15 @@
该目录为 FastGPT 主项目。
- app 前端项目,用于展示和使用 FastGPT
- sandbox 沙盒项目,用于测试和开发
- app fastgpt 核心应用
- sandbox 沙盒项目,用于运行工作流里的代码执行 需求python环境为python:3.11额外安装的包请于requirements.txt填写同时注意个别包可能额外安装库如pandas需要安装libffi
- 新加入python包遇见超时或者权限拦截的问题(确定不是自己的语法问题)请进入docker容器内部执行以下指令
```shell
docker exec -it 《替换成容器名》 /bin/bash
chmod -x testSystemCall.sh
bash ./testSystemCall.sh
```
然后将新的数组替换src下sandbox的constants.py中的SYSTEM_CALLS数组即可