Skip to main content

Watasu Code Interpreter Python SDK

Python package for Watasu code interpreter sandboxes.

Install

Requires Python 3.10 or newer.

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

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.76
File Size Uploaded Provenance Actions
watasu_code_interpreter-0.1.76.tar.gz 7.2 kB With provenance Details for watasu_code_interpreter-0.1.76.tar.gz

Built distribution (wheel)

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

Total release size: 16.9 kB

Release files / watasu_code_interpreter-0.1.76.tar.gz

Download URL watasu_code_interpreter-0.1.76.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8eb3cd348d00a40f4451d144476b18baf88c19b4629eabbf3b9304b9387795e1
BLAKE2b-256 checksum
How to use checksums
d907e36fb67f1e56282e2cc0e21365ccb74d6db59386d02f5a799cf7729392d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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

Download URL watasu_code_interpreter-0.1.76-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98fb5307b71d0fdd67e30d0519bbf3f6f10300c144b86b9f082aace49fe1abd3
BLAKE2b-256 checksum
How to use checksums
acec9cc9d45d75864933fb53a008b95fe8072741eab158cc058ff0c2e15c4cbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for watasu-code-interpreter 0.1.76

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for watasu_code_interpreter-0.1.76.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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