We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4c5bd3 commit c9c5988Copy full SHA for c9c5988
libs/pyodide-sandbox-js/main.ts
@@ -1,13 +1,13 @@
1
+// Parts of this code were adapted from
2
+// https://github.com/alexmojaki/pyodide-worker-runner/blob/master/lib/pyodide_worker_runner.py
3
+// and
4
+// https://github.com/pydantic/pydantic-ai/blob/main/mcp-run-python/src/runCode.ts
5
import { loadPyodide } from "pyodide";
6
import { join } from "@std/path";
7
import { parseArgs } from "@std/cli/parse-args";
8
-
9
const pkgVersion = "0.0.7";
10
-// Python environment preparation code
-// This code was adapted from
-// https://github.com/alexmojaki/pyodide-worker-runner/blob/master/lib/pyodide_worker_runner.py
11
const prepareEnvCode = `
12
import datetime
13
import importlib
0 commit comments