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-1.2.0.tar.gz (514.4 kB view details)

Uploaded Source

Built Distribution

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

cwsandbox-1.2.0-py3-none-any.whl (198.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cwsandbox-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e4ee92d2b7cc14b71067e511eb7ecb2f0efc6208e64618a4653a2627aa65a7b3
MD5 b620519ba92d5ab738b902c282df255e
BLAKE2b-256 fe2b6f33dfd4bbd303bcfaeae57d0c2323aec6fa7af67863d6b750389360cfe1

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for cwsandbox-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f2d6361bb52ce742d236f7d90140b9b14212087c787ac4a9ac116ca5f431ec
MD5 9f945ab59acd838928f6d93c2a8e6400
BLAKE2b-256 70711bd5c0ffa38284a844bde98ea5924cabdd82730d67767e8915e3ad6f7d57

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwsandbox-1.2.0-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