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

# Sandbox

> Create and manage sandboxes using the Python SDK.

## Create

```python theme={null}
from jhansi import Sandbox

sb = Sandbox(language="python")
sb.create()
```

## Upload a file

```python theme={null}
sb.upload_file("main.py")
```

## Upload a project

Zip your project first, then upload:

```bash theme={null}
cd my_project && zip -r ../my_project.zip .
```

```python theme={null}
sb.upload_zip("my_project.zip")
```

## Execute

```python theme={null}
result = sb.exec("python main.py")
print(result)
```

## Test mode

```python theme={null}
result = sb.exec("python main.py", test=True)
print(result)
```

## Status

```python theme={null}
status = sb.status()
print(status["status"])
```

## Delete

```python theme={null}
sb.delete()
```
