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.1.tar.gz (25.2 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.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cocoonstack_sandbox-0.1.1.tar.gz
  • Upload date:
  • Size: 25.2 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.1.tar.gz
Algorithm Hash digest
SHA256 5a4d76aa6176384837157c03e42d38f28834b04fd60969aa493455c2641ff614
MD5 8d6cbae4f852c86a3cdf9dc21ce32580
BLAKE2b-256 067fad5b5e3ebf94782892b926bac0352e0f7dd0976f5fc108d1e01771b85dd8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cocoonstack_sandbox-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 acfa72753a4ea24414915f4478bb11d2068236cebeb32f8eb7a50fb15c178824
MD5 722f0996f7dd9e078d5632204461e68f
BLAKE2b-256 0257ecef402e03a84b0a00ae6c43efe1baa876fb83d8e54b255a6e86e84a667d

See more details on using hashes here.

Provenance

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