Skip to main content

cwsandbox-client

A Python client library for CWSandboxes.

Documentation

See the documentation site for the full tutorial, guides, and API reference.

Quick Start

from cwsandbox import Sandbox

# Quick one-liner with factory method (sync/async hybrid API)
sb = Sandbox.run("echo", "Hello, World!")
sb.stop().result()  # Block for completion

# Context manager for automatic cleanup
with Sandbox.run("sleep", "infinity", container_image="python:3.11") as sb:
    result = sb.exec(["python", "-c", "print(2 + 2)"]).result()
    print(result.stdout)  # 4

# Also works in async contexts
async with Sandbox.run("sleep", "infinity") as sb:
    result = await sb.exec(["python", "-c", "print(2 + 2)"])
    print(result.stdout)  # 4

Development

See DEVELOPMENT.md for setup and workflow.

For code standards and commit guidelines, see CONTRIBUTING.md.

License

  • The CWSandbox Client library is licensed under the Apache-2.0 license.
  • The CWSandbox Client examples are licensed under the BSD-3-Clause license.

Download files

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

Source Distribution

cwsandbox-0.26.1.tar.gz (494.3 kB view details)

Uploaded Source

Built Distribution

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

cwsandbox-0.26.1-py3-none-any.whl (176.6 kB view details)

Uploaded Python 3

File details

Details for the file cwsandbox-0.26.1.tar.gz.

File metadata

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

File hashes

Hashes for cwsandbox-0.26.1.tar.gz
Algorithm Hash digest
SHA256 00ae4ad3ff7ce5c0d0de3a80fb666616b12596f05a3684d4808a325f042313f4
MD5 4e963fb1cc50fabda5e2a8e1ac451191
BLAKE2b-256 939122ec6b88d095d10103dde63ce8cc2e4e1bf642d20365bdc51ff9b4cb7953

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwsandbox-0.26.1.tar.gz:

Publisher: release.yaml on coreweave/cwsandbox-client

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

File details

Details for the file cwsandbox-0.26.1-py3-none-any.whl.

File metadata

  • Download URL: cwsandbox-0.26.1-py3-none-any.whl
  • Upload date:
  • Size: 176.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cwsandbox-0.26.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fff8958bd4d3105b46f39b71202d94787a4383da8f7ce0312a21fce6ff6568b9
MD5 7e61229ee1ea6c80713a6b1fc020d804
BLAKE2b-256 c1ecd8ef0c4d29aa1dbf26d290298f4e180745775ce78c3e6b88c30263cc965d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwsandbox-0.26.1-py3-none-any.whl:

Publisher: release.yaml on coreweave/cwsandbox-client

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 Sentry Error logging StatusPage Status page