> ## 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.

# Examples

> Common patterns using the jhansi SDK.

## Run a Python script

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

with Sandbox(language="python") as sb:
    sb.upload_file("main.py")
    result = sb.exec("python main.py")
    print(result)
```

## Run a Node project

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

with Sandbox(language="node") as sb:
    sb.upload_zip("my_project.zip")
    result = sb.exec("node index.js")
    print(result)
```

## Run tests

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

with Sandbox(language="python") as sb:
    sb.upload_zip("my_project.zip")
    result = sb.exec("python app.py", test=True)
    print(result)
```
