Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Harakiri Python SDK

Typed synchronous and asynchronous clients for the Harakiri sandbox control plane. Developer preview, version 0.1.0rc2, for Python 3.11 or newer. See the release record for publication status, exact artifacts and native qualification evidence.

The SDK talks only to the Harakiri API. It does not require Node, Kubernetes credentials, a runtime-provider SDK or an agent framework.

Version-pinned PyPI installation:

python -m pip install "h-sandbox==0.1.0rc2"
from harakiri import HarakiriClient

with HarakiriClient.from_env() as client:
    with client.sandboxes.task(template="your-installed-template") as sandbox:
        result = sandbox.run("printf 'hello\\n'", check=True)
        print(result.stdout)

Set HARAKIRI_API_URL and HARAKIRI_API_KEY privately. Closing the client closes connections, not sandboxes. The explicit task context owns a newly created sandbox and confirms termination and capacity release on exit. connect borrows an existing sandbox and never deletes it automatically.

See the Python guide for the supported surface, installation, request deadlines, partial outcomes and release qualification status. For asyncio, use AsyncHarakiriClient, async with and awaited resource methods. No event-loop bridge or model dependency is required by the asynchronous API. Python 3.11 is the minimum.

New in 0.1.0rc2, with API 0.5.0-rc.14: sandbox.routes adds protected service exposure, HTTP health polling, bounded requests and scoped WebSocket connection headers. See the service contract for response ownership, cancellation, limits and the matching API requirement.

Metadata

Release files for h-sandbox 0.1.0rc2

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

Source distribution (sdist)

Source distribution for h-sandbox 0.1.0rc2
File Size Uploaded Provenance Actions
h_sandbox-0.1.0rc2.tar.gz 31.5 kB With provenance Details for h_sandbox-0.1.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for h-sandbox 0.1.0rc2
File Interpreter ABI Platform Actions
h_sandbox-0.1.0rc2-py3-none-any.whl Python 3 none any Details for h_sandbox-0.1.0rc2-py3-none-any.whl

Total release size: 61.8 kB

Release files / h_sandbox-0.1.0rc2.tar.gz

Download URL h_sandbox-0.1.0rc2.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4a8a79597946a4e2f34ec40cc26aa371c2e50e921d040d04a28ff27e9498efd6
BLAKE2b-256 checksum
How to use checksums
c5968d5ab7e1bad48778d2ff4bbbba7be59f89e5be3ea32a7f9fd42df39856e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 30, 2026.

Transparency log

Release files / h_sandbox-0.1.0rc2-py3-none-any.whl

Download URL h_sandbox-0.1.0rc2-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ddd71ab1a3cea95baf9645d10a6d08108e1e885010d11b0a5d3aeeb6a163fdb7
BLAKE2b-256 checksum
How to use checksums
a084afce39f67a51fe26c8d2c2f512425a1a249cd0039076e51e0ab344ba760c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 30, 2026.

Transparency log

Security for h-sandbox 0.1.0rc2

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 h_sandbox-0.1.0rc2.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 30, 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