Skip to main content

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


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.2.tar.gz (25.4 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.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

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

Hashes for cocoonstack_sandbox-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d574c17ca3eb54df51e235dfffd5942cfb687542213ce04dd0a0d600b47dea0c
MD5 ba2a2da1711359197e5b30f79ae20f31
BLAKE2b-256 3071a9032fe34b5bc3c8137e83b14bf08b30ee799a82a51b5e29924d7af19ead

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cocoonstack_sandbox-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6487f10e263387235a0edbeb4b8e83809fef29d998ce786e3cb2387099e266
MD5 e1b7374b25a8fdc9dcd2af6649c9f46c
BLAKE2b-256 e00df7a77c5dda2623f9f9c63f331715488863e4e35dc7552f6dc86b2f47f4af

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox-0.1.2-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page