cwsandbox
A Python client library for CoreWeave Sandbox
Decision gist · record as of 2026-08-14
Yes, if you are building on CoreWeave's sandbox service. The library is actively maintained, has low install friction, carries no known vulnerabilities, and provides a clean Pythonic interface to a specialized infrastructure service. Not applicable if you don't have CoreWeave infrastructure access or need a general-purpose container client.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later.
- Sandbox execution requires connectivity to CoreWeave infrastructure.
- Low install friction with a pure-Python wheel distribution.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with attribution. Examples are separately licensed under BSD-3-Clause.
last release 2026-08-14 (0 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 602,312 downloads/mo, #5,815 on PyPI
Alternatives
Verify before relying
pip install cwsandbox
from cwsandbox import Sandbox
sb = Sandbox.run("echo", "Hello, World!")
sb.stop().result()- Whether CoreWeave account/credentials are required to use the Sandbox API
- Pricing or rate limits for sandbox execution on CoreWeave infrastructure
- Whether the library supports on-premise or self-hosted sandbox deployments
What it is and what it does
cwsandbox is a gRPC-based Python client for CoreWeave's container sandbox service. It lets you spawn isolated container environments, execute commands inside them, and manage their lifecycle—all from Python code. The library supports both synchronous and asynchronous workflows, with a context-manager interface for automatic cleanup and a hybrid API that returns futures you can block on or await.
You'd use this when you need to run untrusted code, perform isolated computations, or execute workloads on CoreWeave's infrastructure without managing containers directly. It abstracts away the gRPC plumbing and provides a Pythonic interface for sandbox creation, command execution, and result retrieval.
Use it for
- Execute untrusted or user-supplied code in an isolated container without risking your host environment.
- Run remote computational tasks on CoreWeave infrastructure and retrieve results asynchronously.
- Build multi-step workflows where each step runs in a fresh, isolated sandbox container.
- Integrate sandbox execution into async Python applications using the native async/await API.
- Prototype or test code in ephemeral containers without managing Docker or Kubernetes directly.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building on CoreWeave's sandbox service.
The library is actively maintained, has low install friction, carries no known vulnerabilities, and provides a clean Pythonic interface to a specialized infrastructure service. Not applicable if you don't have CoreWeave infrastructure access or need a general-purpose container client.
Install
cwsandbox on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance as of release date. Depends on googleapis-common-protos, grpcio, and protobuf for gRPC communication.
Requires Python 3.11 or later. Sandbox execution requires connectivity to CoreWeave infrastructure.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with attribution. Examples are separately licensed under BSD-3-Clause.
Quickstart
pip install cwsandbox
from cwsandbox import Sandbox
sb = Sandbox.run("echo", "Hello, World!")
sb.stop().result()
Verify before relying
- Whether CoreWeave account/credentials are required to use the Sandbox API
- Pricing or rate limits for sandbox execution on CoreWeave infrastructure
- Whether the library supports on-premise or self-hosted sandbox deployments
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesgoogleapis-common-protosgrpcioprotobuf |
| Maintenance | Actively maintained 0 days since the last release |
| First released | |
| Downloads | 602,312 / month, #5,815 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: cwsandbox-1.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “container sandbox client”
- cwsandboxA Python client library for running and managing isolated container…
- contree-sdkPython SDK for ConTree, a container runtime that provides versioned,…
- llm-sandboxExecutes code generated by large language models in isolated…
Give your agent the search over MCP, or paste the wish link into any chat.
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.
Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.
Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.
Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.
Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.
See also contree-sdk · llm-sandbox · k8s-agent-sandbox · prime-sandboxes · opensandbox · e2b-desktop · hyperlight-sandbox · koyeb-sdk · e2b · cloudshell-shell-core