You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
A code execution sandbox service that runs arbitrary code inside Linux namespace jails (nsjail). Supports Node.js, Ruby, Go, and Bash runtimes. Exposes an HTTP API to receive code, execute it in an isolated environment, and return the output.
7
+
A code execution sandbox service that runs arbitrary code inside Linux namespace jails (nsjail). Supports Node.js, Ruby, Go, Python, and Bash runtimes. Exposes an HTTP API to receive code, execute it in an isolated environment, and return the output.
8
8
9
9
## Development Setup
10
10
@@ -87,7 +87,7 @@ Comprehensive nsjail reference documentation lives in `.context/docs/nsjail/`. C
87
87
88
88
### POST /v1/run
89
89
90
-
Request (`runtime` is required, must be `"node"`, `"ruby"`, `"go"`, or `"bash"`):
90
+
Request (`runtime` is required, must be `"node"`, `"ruby"`, `"go"`, `"python"`, or `"bash"`):
Possible `status` values: `"OK"`, `"SIGNAL"`, `"TIMEOUT"`, `"OUTPUT_LIMIT_EXCEEDED"`.
101
101
102
-
`compile`: Compilation step result (same schema as `run`). `null` for non-compiled runtimes (node, ruby, bash). When compilation fails, `run` is `null`.
102
+
`compile`: Compilation step result (same schema as `run`). `null` for non-compiled runtimes (node, ruby, python, bash). When compilation fails, `run` is `null`.
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ Codize Sandbox is a code execution engine that runs arbitrary code safely inside
37
37
| Node.js |`node`|
38
38
| Ruby |`ruby`|
39
39
| Go |`go`|
40
+
| Python |`python`|
40
41
| Bash |`bash`|
41
42
42
43
## Usage
@@ -115,7 +116,7 @@ Request:
115
116
}
116
117
```
117
118
118
-
-`runtime` (required): one of `"node"`, `"ruby"`, `"go"`, `"bash"`
119
+
-`runtime` (required): one of `"node"`, `"ruby"`, `"go"`, `"python"`, `"bash"`
119
120
-`files` (required): array of source files. `content` is Base64-encoded. The first file in the array is used as the entrypoint
120
121
121
122
Response:
@@ -134,7 +135,7 @@ Response:
134
135
}
135
136
```
136
137
137
-
-`compile`: compilation result (same schema as `run`). `null` for interpreted runtimes (node, ruby, bash). When compilation fails, `run` is `null`
138
+
-`compile`: compilation result (same schema as `run`). `null` for interpreted runtimes (node, ruby, python, bash). When compilation fails, `run` is `null`
138
139
-`run`: execution result. `null` when compilation fails
139
140
-`stdout` / `stderr` / `output`: Base64-encoded output. `output` is the interleaved combination of stdout and stderr
0 commit comments