python template ships Python 3.10 with pip, venv, and requests,
httpx, pydantic, numpy, and pandas already installed. Pick it for
data-processing scripts, REST clients, or anything that needs pandas /
numpy without a custom build.
What you’ll learn
- Picking
template="python"to skip apip install pandasstep - Writing input data into the sandbox with
sbx.files.write - Running a Python analysis script and reading JSON back
Prerequisites
Code
- Python
- TypeScript
Expected output
The
python template intentionally does not include heavy ML packages
(torch, transformers, scipy, scikit-learn). If you need those, build
a custom template — see Build a custom template.