Metadata-Version: 2.3
Name: codeboxapi
Version: 0.2.2
Summary: CodeBox gives you an easy scalable and isolated python interpreter for your LLM Agents.
Project-URL: repository, https://github.com/shroominic/codebox-api
Project-URL: api-reference, https://codeboxapi.com/docs
Project-URL: docs, https://codeboxapi.com/docs
Author-email: Shroominic <contact@shroominic.com>
License: MIT
License-File: LICENSE
Keywords: agent infrastructure,agent sandbox,agents,code sandbox,code-interpreter,codebox,codebox-api,codeboxapi,codeinterpreterapi,language model
Requires-Python: >=3.9
Requires-Dist: httpx>=0.27
Provides-Extra: all
Requires-Dist: aiofiles; extra == 'all'
Requires-Dist: bokeh; extra == 'all'
Requires-Dist: dash; extra == 'all'
Requires-Dist: fastapi[standard]; extra == 'all'
Requires-Dist: ipykernel; extra == 'all'
Requires-Dist: jupyter-client; extra == 'all'
Requires-Dist: matplotlib; extra == 'all'
Requires-Dist: networkx; extra == 'all'
Requires-Dist: numpy; extra == 'all'
Requires-Dist: openpyxl; extra == 'all'
Requires-Dist: pandas; extra == 'all'
Requires-Dist: pillow; extra == 'all'
Requires-Dist: plotly; extra == 'all'
Requires-Dist: python-docx; extra == 'all'
Requires-Dist: scikit-learn; extra == 'all'
Requires-Dist: scipy; extra == 'all'
Requires-Dist: seaborn; extra == 'all'
Requires-Dist: statsmodels; extra == 'all'
Requires-Dist: sympy; extra == 'all'
Requires-Dist: uv; extra == 'all'
Requires-Dist: yfinance; extra == 'all'
Provides-Extra: data-science
Requires-Dist: aiofiles; extra == 'data-science'
Requires-Dist: bokeh; extra == 'data-science'
Requires-Dist: dash; extra == 'data-science'
Requires-Dist: ipykernel; extra == 'data-science'
Requires-Dist: jupyter-client; extra == 'data-science'
Requires-Dist: matplotlib; extra == 'data-science'
Requires-Dist: networkx; extra == 'data-science'
Requires-Dist: numpy; extra == 'data-science'
Requires-Dist: openpyxl; extra == 'data-science'
Requires-Dist: pandas; extra == 'data-science'
Requires-Dist: pillow; extra == 'data-science'
Requires-Dist: plotly; extra == 'data-science'
Requires-Dist: python-docx; extra == 'data-science'
Requires-Dist: scikit-learn; extra == 'data-science'
Requires-Dist: scipy; extra == 'data-science'
Requires-Dist: seaborn; extra == 'data-science'
Requires-Dist: statsmodels; extra == 'data-science'
Requires-Dist: sympy; extra == 'data-science'
Requires-Dist: uv; extra == 'data-science'
Requires-Dist: yfinance; extra == 'data-science'
Provides-Extra: docs
Requires-Dist: mkdocs-material; extra == 'docs'
Requires-Dist: neoteroi-mkdocs; extra == 'docs'
Provides-Extra: local
Requires-Dist: aiofiles; extra == 'local'
Requires-Dist: ipykernel; extra == 'local'
Requires-Dist: jupyter-client; extra == 'local'
Requires-Dist: uv; extra == 'local'
Provides-Extra: pytest
Requires-Dist: pytest-asyncio; extra == 'pytest'
Provides-Extra: serve
Requires-Dist: fastapi[standard]; extra == 'serve'
Provides-Extra: vision
Requires-Dist: pillow; extra == 'vision'
Description-Content-Type: text/markdown

# CodeBox

[![Version](https://badge.fury.io/py/codeboxapi.svg)](https://badge.fury.io/py/codeboxapi)
[![code-check](https://github.com/shroominic/codebox-api/actions/workflows/code-check.yml/badge.svg)](https://github.com/shroominic/codebox-api/actions/workflows/code-check.yml)
![Downloads](https://img.shields.io/pypi/dm/codeboxapi)
![License](https://img.shields.io/pypi/l/codeboxapi)

CodeBox is the simplest cloud infrastructure for your LLM Apps and Services.
It allows you to run python code in an isolated/sandboxed environment.

## Installation

You can install CodeBox with pip:

```bash
pip install codeboxapi
```

## Usage

```bash
export CODEBOX_API_KEY=local # for local development
export CODEBOX_API_KEY=docker # for small projects
export CODEBOX_API_KEY=sk-*************** # for production
```

```python
from codeboxapi import CodeBox

# create a new codebox
codebox = CodeBox()

# run some code
codebox.exec("a = 'Hello'")
codebox.exec("b = 'World!'")
codebox.exec("x = a + ', ' + b")
result = codebox.exec("print(x)")

print(result)
# Hello, World!
```

## Where to get your api-key?

Checkout the [pricing page](https://codeboxapi.com/pricing) of CodeBoxAPI. By subscribing to a plan,
you will receive an account with an api-key.
Bear in mind, we don't have many automations set up right now,
so you'll need to write an [email](mailto:team@codeboxapi.com) for things like refunds,
sub cancellations, or upgrades.

## Docs

Checkout the [documentation](https://shroominic.github.io/codebox-api/) for more details!

## Contributing

Feel free to contribute to this project.
You can open an issue or submit a pull request.

## License

[MIT](https://choosealicense.com/licenses/mit/)

## Contact

You can contact me at [team@codeboxapi.com](mailto:team@codeboxapi.com)
