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

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

Built distribution (wheel)

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

Total release size: 16.9 kB

Release files / watasu_code_interpreter-0.1.77.tar.gz

Download URL watasu_code_interpreter-0.1.77.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2253375a7dd09b8d8790c50ec0db99e0b34086129e4511e9a12a32fcbdffec7c
BLAKE2b-256 checksum
How to use checksums
c7003758d3ab7d2eb3b29f8f7ce45809eede566013f3f39c0abdf643077e0aab
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 29, 2026.

Transparency log

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

Download URL watasu_code_interpreter-0.1.77-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d402d7527cac46a0114aa413c46a1f1ec2cefe8d1e3a2cabab82113d8bf4ca63
BLAKE2b-256 checksum
How to use checksums
5dd73f4f8616bea96dbaebcc82eb270d4de041eea1747f0309edd7ade873b993
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 29, 2026.

Transparency log

Security for watasu-code-interpreter 0.1.77

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.77.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 29, 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