Skip to main content

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 (files and tar streams as whole bytes values): exec/run, file read/write, 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocoonstack_sandbox-0.1.12.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cocoonstack_sandbox-0.1.12-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file cocoonstack_sandbox-0.1.12.tar.gz.

File metadata

  • Download URL: cocoonstack_sandbox-0.1.12.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cocoonstack_sandbox-0.1.12.tar.gz
Algorithm Hash digest
SHA256 5bc5fcafb66b78e3ed7c4ea562d5a1b40eba43ff9e8e42755fea0f24f5f2c591
MD5 445a1c9ccbd533f9527bd43d5355afdb
BLAKE2b-256 8fcf55728a49ded3d3638a8438c2f91ba33d1fbf88b1d3d20fa518d2648de36d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox-0.1.12.tar.gz:

Publisher: publish-pypi.yml on cocoonstack/sandbox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cocoonstack_sandbox-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for cocoonstack_sandbox-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 a11c1a396252894c79a5f920d2ba7a6e20504e8285c2615cad68b7811aa526e9
MD5 290b282b09f7282ff61aa1c02c550ef3
BLAKE2b-256 ffcc86f5a6e077520467a66eae2fb81a8c0273b24059ce3f678b2d9fd163ae21

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox-0.1.12-py3-none-any.whl:

Publisher: publish-pypi.yml on cocoonstack/sandbox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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