A Python client library for CoreWeave Sandbox
Project Links
Meta
Author: CoreWeave, Inc.
Requires Python: <4,>=3.11
Classifiers
Development Status
- 3 - Alpha
Intended Audience
- Developers
License
- OSI Approved :: Apache Software License
Programming Language
- Python :: 3
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
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.
0.23.3
May 21, 2026
0.23.2
May 20, 2026
0.23.1
May 20, 2026
0.23.0
May 08, 2026
0.22.0
Apr 29, 2026
0.21.0
Apr 23, 2026
0.20.0
Apr 22, 2026
0.19.3
Apr 22, 2026
0.19.2
Apr 22, 2026
0.19.1
Apr 21, 2026
0.19.0
Apr 21, 2026
0.18.0
Apr 20, 2026
0.17.0
Apr 17, 2026
0.16.0
Apr 07, 2026
0.15.0
Apr 06, 2026
0.14.0
Apr 03, 2026
0.13.0
Apr 02, 2026
0.12.2
Mar 31, 2026
0.12.1
Mar 26, 2026
0.12.0
Mar 25, 2026
0.11.2
Mar 24, 2026
0.11.1
Mar 24, 2026
0.11.0
Mar 24, 2026
0.10.0
Mar 24, 2026
0.9.0
Mar 12, 2026