[[command]]
name = "python3"
description = "CPython interpreter. `python3 FILE` runs a script file; `-c CODE` runs inline code; `-m MODULE` runs a module; a bare invocation starts an interactive REPL. Each of those executes arbitrary code with the invoking user's permissions and full filesystem/network access. `--version`/`-V` and `--help`/`-h` are purely informational and run no user code. Python follows an annual release cycle with a stable, slow-moving command-line surface."
url = "https://docs.python.org/3/using/cmdline.html"
researched_version = "CPython 3.13"
handler = "interpreter"
aliases = ["python"]
doc_body = "Allowed: `--version`/`--help` (informational), and running a WORKSPACE-local script (`python3 ./task.py`, `python3 scripts/build.py`) — the dev loop. The first positional is the script to run; further positionals are its arguments."
examples_safe = [
"python3 --version",
"python3 --help",
"python --version",
"python3 ./task.py",
"python3 scripts/build.py",
"python3 ./task.py --flag arg",
]
examples_denied = [
"python3 /tmp/evil.py",
"python3 ~/Downloads/x.py",
"python3 -c 'import os'",
"python3 -m http.server",
"python3 *.py",
"python3",
]
[command.fallback]
executor = "file"
level = "Inert"
bare = false
standalone = ["--help", "--version", "-V", "-h"]