Python
Execute Python in a secure and isolated sandbox
This page is about the Python interpreter environment inside the Riza Code Interpreter API. If you’re looking to call the API from Python, see the API Client Libraries guide.
Runtime
Riza runs Python 3.12.0 compiled to WASM. The entire standard library is included.
Limitations
There are no limitations beyond the general sandbox limitations that apply to all Riza interpreter runtime environments.
See our roadmap for planned future improvements.
Output
You can write to stdout
and stderr
as you typically would.
Input
You can read from stdin
and access command line arguments and environment
variables, all as you typically would.
HTTP
You can make HTTP requests using the requests
or httpx
packages.
Network access is blocked by default, so you need to allow HTTP traffic to
individual hosts using the http
request parameter. See the HTTP
guide for a full example.