G4Vi/eval-py

# Python Eval Servlet

A simple servlet that evaluates Python code in a CPython Wasm sandbox and returns the result.

## What it does

Takes Python code as input, evaluates it using `eval()`, and returns the result as a string.

## Usage

Call with:

```json

{

"arguments": {

"code": "2 + 2" // Required: Python code to evaluate

}

}

```

Returns:

```

"4"

```

Note: Don't use `print()` in the code - the result needs to be returned directly.

Available Tools

eval-py

Evaluate some Python using `exec()` in a sandbox.