Skip to main content

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.73

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for watasu-code-interpreter 0.1.73
File Size Uploaded Provenance Actions
watasu_code_interpreter-0.1.73.tar.gz 7.1 kB Without provenance Details for watasu_code_interpreter-0.1.73.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for watasu-code-interpreter 0.1.73
File Interpreter ABI Platform Actions
watasu_code_interpreter-0.1.73-py3-none-any.whl Python 3 none any Details for watasu_code_interpreter-0.1.73-py3-none-any.whl

Total release size: 16.8 kB

Release files / watasu_code_interpreter-0.1.73.tar.gz

Download URL watasu_code_interpreter-0.1.73.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a47ddefc6a8e947300311c7ce233d79acbce659415a936a66ea9afb57cac1838
BLAKE2b-256 checksum
How to use checksums
e09f6c5a184388b78303f8bec5164d398b9c8995a72bb25e333aa263392dedcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / watasu_code_interpreter-0.1.73-py3-none-any.whl

Download URL watasu_code_interpreter-0.1.73-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fab05d132904cff916f973dbd8e0c809cd358ad9473fb5d42828bb55ede322b
BLAKE2b-256 checksum
How to use checksums
74db56fa93b332d7b4af2504ae15e5d8f7643a55da213459447e976fb358fc89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for watasu-code-interpreter 0.1.73

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page