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.0rc1, 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.0rc1"
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.
Metadata
Release files for h-sandbox 0.1.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| h_sandbox-0.1.0rc1.tar.gz | 27.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| h_sandbox-0.1.0rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.4 kB
Release files / h_sandbox-0.1.0rc1.tar.gz
| Download URL | h_sandbox-0.1.0rc1.tar.gz |
|---|---|
| Size | 27.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
440787d19a1ce99021813c1b505ec161fc1cb961432315313c806ce1b15067b9
|
|
BLAKE2b-256 checksum How to use checksums |
d49b47764a3a3001801d521fd703072b40d1fd3e22a90b99683a090849376542
|
| 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 14, 2026.
Transparency logRelease files / h_sandbox-0.1.0rc1-py3-none-any.whl
| Download URL | h_sandbox-0.1.0rc1-py3-none-any.whl |
|---|---|
| Size | 26.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
187b70c2ab24b5f9d9970bc2087b8c08d4f916ae00924377b8a9ef7e25e61475
|
|
BLAKE2b-256 checksum How to use checksums |
96e1e1aa6d17f51fcf2996c1390b638b21d25324651b0451b5aa760c7f85dbb6
|
| 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 14, 2026.
Transparency log