A Python client library for CoreWeave Sandbox
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cwsandbox-0.23.0.tar.gz.
File metadata
- Download URL: cwsandbox-0.23.0.tar.gz
- Upload date:
- Size: 400.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4574298fb61ee66cc293e2a1c2734bfef4481a41fb6cc5ccf0b279e6a85cd795
|
|
| MD5 |
0e01e8cf3ce4198ca785fef895f93db4
|
|
| BLAKE2b-256 |
674971fe2c649ff74601b499d60e9920ea69e588f514233d3d28de3af30407fb
|
Provenance
The following attestation bundles were made for cwsandbox-0.23.0.tar.gz:
Publisher:
release.yaml on coreweave/cwsandbox-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cwsandbox-0.23.0.tar.gz -
Subject digest:
4574298fb61ee66cc293e2a1c2734bfef4481a41fb6cc5ccf0b279e6a85cd795 - Sigstore transparency entry: 1476230935
- Sigstore integration time:
-
Permalink:
coreweave/cwsandbox-client@31fcc1d1fa3f89605342a45a2de5dda7710c0778 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/coreweave
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@31fcc1d1fa3f89605342a45a2de5dda7710c0778 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cwsandbox-0.23.0-py3-none-any.whl.
File metadata
- Download URL: cwsandbox-0.23.0-py3-none-any.whl
- Upload date:
- Size: 135.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a817ea4005c392f582b798fa0e57f03a54b347e1720623f33c488b761e69d15e
|
|
| MD5 |
294d735887619e81986a939a2826e2a0
|
|
| BLAKE2b-256 |
06317001551ba464caac63f46dfb2c0635d23a8f9b9083385bc3d086587c603b
|
Provenance
The following attestation bundles were made for cwsandbox-0.23.0-py3-none-any.whl:
Publisher:
release.yaml on coreweave/cwsandbox-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cwsandbox-0.23.0-py3-none-any.whl -
Subject digest:
a817ea4005c392f582b798fa0e57f03a54b347e1720623f33c488b761e69d15e - Sigstore transparency entry: 1476231037
- Sigstore integration time:
-
Permalink:
coreweave/cwsandbox-client@31fcc1d1fa3f89605342a45a2de5dda7710c0778 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/coreweave
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@31fcc1d1fa3f89605342a45a2de5dda7710c0778 -
Trigger Event:
push
-
Statement type: