Watasu Code Interpreter Python SDK
Python package for Watasu code interpreter sandboxes.
Install
pip install watasu-code-interpreter
Set WATASU_API_KEY before using the SDK.
Usage
from watasu_code_interpreter import Sandbox
with Sandbox.create() as sbx:
context = sbx.create_code_context()
execution = sbx.run_code(
"print('hello')\n2 + 3",
context=context,
on_stdout=lambda message: print(message.line),
)
print(execution.text)
sbx.remove_code_context(context)
Sandbox.create() starts the code-interpreter template by default. Code runs
in persistent contexts and returns structured results, logs, and error
fields for each execution.
The package installs watasu and exposes the watasu_code_interpreter import
path.
Metadata
Release files for watasu-code-interpreter 0.1.75
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| watasu_code_interpreter-0.1.75.tar.gz | 7.1 kB | Without provenance | Details for watasu_code_interpreter-0.1.75.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| watasu_code_interpreter-0.1.75-py3-none-any.whl | Python 3 | none | any | Details for watasu_code_interpreter-0.1.75-py3-none-any.whl |
Total release size: 16.8 kB
Release files / watasu_code_interpreter-0.1.75.tar.gz
| Download URL | watasu_code_interpreter-0.1.75.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38623368615ceff103e556a640139d61899221ea9dd87f430e300ecb62c6230c
|
|
BLAKE2b-256 checksum How to use checksums |
c8d74a3c9f431f51c2dadc8c30bca6a9f031c6228bd8f4d4dc229dc30701ff84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / watasu_code_interpreter-0.1.75-py3-none-any.whl
| Download URL | watasu_code_interpreter-0.1.75-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef517128cb2eece818d12ef3b36eaa745c84a8f46e0f8cd9cf1233aa88e7a83c
|
|
BLAKE2b-256 checksum How to use checksums |
005a66298dc0ffb3903b17c40f89996591b80242fa81916586a453e80939259d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for watasu-code-interpreter 0.1.75
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.