Python SDK for the cocoon sandbox control plane
Project description
cocoonstack-sandbox
Python SDK for the cocoon sandbox control plane: microVM sandboxes with warm-pool claims, checkpoint branching, transparent hibernate/wake, and a relay-only data plane that works on no-network guests.
from cocoonsandbox import Client
client = Client("10.0.0.5:7777", api_token="...")
with client.new("ghcr.io/cocoonstack/sandbox/rt:24.04") as sb:
print(sb.exec("echo", "hello"))
ckpt = sb.checkpoint("after-setup")
branch = ckpt.new() # a fresh sandbox at the captured moment
stdlib-only and synchronous — pip install cocoonstack-sandbox brings no
dependencies. The surface mirrors the Go SDK: exec/run, streaming files,
tar push/pull, find/replace, watch, persistent sessions, git verbs, pty,
port dial/proxy/preview URLs, background processes (spawn/ps/kill/
logs/attach), fork, hibernate, promote, checkpoints, and the LSP broker.
Wire fidelity is pinned by the shared protocol fixture corpus (Rust + Go +
Python all round-trip it in CI).
Full reference: https://cocoonstack.github.io/sandbox/sdk-python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cocoonstack_sandbox-0.1.2.tar.gz.
File metadata
- Download URL: cocoonstack_sandbox-0.1.2.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d574c17ca3eb54df51e235dfffd5942cfb687542213ce04dd0a0d600b47dea0c
|
|
| MD5 |
ba2a2da1711359197e5b30f79ae20f31
|
|
| BLAKE2b-256 |
3071a9032fe34b5bc3c8137e83b14bf08b30ee799a82a51b5e29924d7af19ead
|
Provenance
The following attestation bundles were made for cocoonstack_sandbox-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on cocoonstack/sandbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cocoonstack_sandbox-0.1.2.tar.gz -
Subject digest:
d574c17ca3eb54df51e235dfffd5942cfb687542213ce04dd0a0d600b47dea0c - Sigstore transparency entry: 2193384655
- Sigstore integration time:
-
Permalink:
cocoonstack/sandbox@0a8f6aec51385504cc8e61ae7d27aaa23b7b3f59 -
Branch / Tag:
refs/tags/sdk-python-v0.1.2 - Owner: https://github.com/cocoonstack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@0a8f6aec51385504cc8e61ae7d27aaa23b7b3f59 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cocoonstack_sandbox-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cocoonstack_sandbox-0.1.2-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e6487f10e263387235a0edbeb4b8e83809fef29d998ce786e3cb2387099e266
|
|
| MD5 |
e1b7374b25a8fdc9dcd2af6649c9f46c
|
|
| BLAKE2b-256 |
e00df7a77c5dda2623f9f9c63f331715488863e4e35dc7552f6dc86b2f47f4af
|
Provenance
The following attestation bundles were made for cocoonstack_sandbox-0.1.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on cocoonstack/sandbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cocoonstack_sandbox-0.1.2-py3-none-any.whl -
Subject digest:
9e6487f10e263387235a0edbeb4b8e83809fef29d998ce786e3cb2387099e266 - Sigstore transparency entry: 2193384657
- Sigstore integration time:
-
Permalink:
cocoonstack/sandbox@0a8f6aec51385504cc8e61ae7d27aaa23b7b3f59 -
Branch / Tag:
refs/tags/sdk-python-v0.1.2 - Owner: https://github.com/cocoonstack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@0a8f6aec51385504cc8e61ae7d27aaa23b7b3f59 -
Trigger Event:
push
-
Statement type: