Metadata-Version: 2.4
Name: abox-code-interpreter
Version: 0.1.0
Summary: AgentBox Code Interpreter - Stateful code execution
Author: RetailDriver LLC
License-Expression: MIT
License-File: LICENSE
License-File: NOTICE
Requires-Dist: httpx>=0.20.0,<1.0.0
Requires-Dist: attrs>=21.3.0
Requires-Dist: abox-sdk>=0.1.0,<0.2.0
Requires-Python: >=3.10
Project-URL: Homepage, https://docs.agentbox.ru/en/sdk/code-interpreter/
Project-URL: Documentation, https://docs.agentbox.ru/en/sdk/api-reference/python/code-interpreter/
Project-URL: Repository, https://github.com/abox-dev/sdk/tree/main/packages/code-interpreter-python
Project-URL: Bug Tracker, https://github.com/abox-dev/sdk/issues
Description-Content-Type: text/markdown

<p align="center"><img src="https://raw.githubusercontent.com/abox-dev/sdk/main/readme-assets/agentbox-logo-email.png" alt="AgentBox" width="240"></p>

# `abox-code-interpreter`

Stateful Python, JavaScript, and TypeScript execution in an AgentBox sandbox. The distribution is named `abox-code-interpreter`; the Python package is `agentbox_code_interpreter`.

```bash
pip install abox-code-interpreter
```

Create an API key using the [API key guide](https://docs.agentbox.ru/en/quickstart/api-key/) and set `AGENTBOX_API_KEY`.

```python
from agentbox_code_interpreter import Sandbox

with Sandbox.create() as sandbox:
    execution = sandbox.run_code("x = 1; x += 1; x")
    print(execution.text)
```

`AsyncSandbox` provides the equivalent async API. See the [Code Interpreter guide](https://docs.agentbox.ru/en/sdk/code-interpreter/) and [API reference](https://docs.agentbox.ru/en/sdk/api-reference/python/code-interpreter/).
