> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandboxes Python client

> Python SDK for creating and managing CoreWeave sandbox environments.

`cwsandbox` Python 클라이언트는 CoreWeave 샌드박스 환경을 생성하고 관리하기 위한 고수준 SDK를 제공합니다. 통합 API를 통해 동기 및 비동기 워크플로를 모두 지원합니다.

<h2 id="installation">
  설치
</h2>

```bash theme={"system"}
uv pip install cwsandbox
```

<h2 id="quick-start">
  빠른 시작
</h2>

샌드박스를 생성하고 명령을 실행한 다음 결과를 가져오세요:

```python theme={"system"}
from cwsandbox import Sandbox

# 자동 정리를 위한 컨텍스트 관리자
with Sandbox.run(container_image="python:3.11") as sb:
    result = sb.exec(["python", "-c", "print(2 + 2)"]).result()
    print(result.stdout)  # 4
```

동일한 API를 비동기 컨텍스트에서도 사용할 수 있습니다:

```python theme={"system"}
from cwsandbox import Sandbox

async with Sandbox.run() as sb:
    result = await sb.exec(["python", "-c", "print(2 + 2)"])
    print(result.stdout)  # 4
```

<h2 id="next-steps">
  다음 단계
</h2>

<CardGroup cols={3}>
  <Card title="시작하기" icon="rocket" href="/ko/products/sandboxes/get-started">
    인증을 완료하고 SDK로 첫 번째 서버리스 샌드박스를 실행해 보세요.
  </Card>

  <Card title="튜토리얼" icon="graduation-cap" href="/ko/products/sandboxes/client/tutorial/configuration">
    SDK를 사용한 설정, 명령 실행, 파일 오퍼레이션, 정리 작업을 단계별로 안내하는 워크스루입니다.
  </Card>

  <Card title="가이드" icon="book" href="/ko/products/sandboxes/client/guides/sandbox-lifecycle">
    라이프사이클 관리, 파일 오퍼레이션, 실행 패턴, 문제 해결 등 주제별 심층 가이드입니다.
  </Card>
</CardGroup>
