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, 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.0.tar.gz (17.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.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cocoonstack_sandbox-0.1.0.tar.gz
  • Upload date:
  • Size: 17.1 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.0.tar.gz
Algorithm Hash digest
SHA256 fa23f3e9004cf2e2fddb1c5121a3f9de84c2efe96b4c973714693e454b08ce48
MD5 68adefc601aa7e1d7e2e5b1c30b3b1ca
BLAKE2b-256 32f18ea45fb557f93009f4dec054da75b8dea9f7f85578f5a09038e8584ae655

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cocoonstack_sandbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 372973f102821d7527d5be75e35c317442a2984d6208cc8f5e9df9196addc0c3
MD5 da92b6ae4cf9dfbe7aad7bdcaf0bc3ae
BLAKE2b-256 a388e1ea9c2b19eafd90d37a77399ad809244016fad740956abe94a043681410

See more details on using hashes here.

Provenance

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