# 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)
Raw data
{
"_id": null,
"home_page": null,
"name": "codeboxapi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "agent infrastructure, agent sandbox, agents, code sandbox, code-interpreter, codebox, codebox-api, codeboxapi, codeinterpreterapi, language model",
"author": null,
"author_email": "Shroominic <contact@shroominic.com>",
"download_url": "https://files.pythonhosted.org/packages/60/1e/e9bbca0b8cf3a84f05650f504589979b1fdd85bfc40a954f26858c6a2c41/codeboxapi-0.2.5.tar.gz",
"platform": null,
"description": "# CodeBox\n\n[![Version](https://badge.fury.io/py/codeboxapi.svg)](https://badge.fury.io/py/codeboxapi)\n[![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)\n![Downloads](https://img.shields.io/pypi/dm/codeboxapi)\n![License](https://img.shields.io/pypi/l/codeboxapi)\n\nCodeBox is the simplest cloud infrastructure for your LLM Apps and Services.\nIt allows you to run python code in an isolated/sandboxed environment.\n\n## Installation\n\nYou can install CodeBox with pip:\n\n```bash\npip install codeboxapi\n```\n\n## Usage\n\n```bash\nexport CODEBOX_API_KEY=local # for local development\nexport CODEBOX_API_KEY=docker # for small projects\nexport CODEBOX_API_KEY=sk-*************** # for production\n```\n\n```python\nfrom codeboxapi import CodeBox\n\n# create a new codebox\ncodebox = CodeBox()\n\n# run some code\ncodebox.exec(\"a = 'Hello'\")\ncodebox.exec(\"b = 'World!'\")\ncodebox.exec(\"x = a + ', ' + b\")\nresult = codebox.exec(\"print(x)\")\n\nprint(result)\n# Hello, World!\n```\n\n## Where to get your api-key?\n\nCheckout the [pricing page](https://codeboxapi.com/pricing) of CodeBoxAPI. By subscribing to a plan,\nyou will receive an account with an api-key.\nBear in mind, we don't have many automations set up right now,\nso you'll need to write an [email](mailto:team@codeboxapi.com) for things like refunds,\nsub cancellations, or upgrades.\n\n## Docs\n\nCheckout the [documentation](https://shroominic.github.io/codebox-api/) for more details!\n\n## Contributing\n\nFeel free to contribute to this project.\nYou can open an issue or submit a pull request.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Contact\n\nYou can contact me at [team@codeboxapi.com](mailto:team@codeboxapi.com)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "CodeBox gives you an easy scalable and isolated python interpreter for your LLM Agents.",
"version": "0.2.5",
"project_urls": {
"api-reference": "https://codeboxapi.com/docs",
"docs": "https://codeboxapi.com/docs",
"repository": "https://github.com/shroominic/codebox-api"
},
"split_keywords": [
"agent infrastructure",
" agent sandbox",
" agents",
" code sandbox",
" code-interpreter",
" codebox",
" codebox-api",
" codeboxapi",
" codeinterpreterapi",
" language model"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bddad2c6d69863163d0b82d5d9852e384c3fadaac99ef78a1f91aed7842dc157",
"md5": "a0db16162b7f4bd5ff40359d1cd325e9",
"sha256": "21bbe3147520910160e47ec90957d98d1b2cf5ed1b4fcfeced6ab41849d99d0d"
},
"downloads": -1,
"filename": "codeboxapi-0.2.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a0db16162b7f4bd5ff40359d1cd325e9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 17012,
"upload_time": "2024-12-03T03:19:47",
"upload_time_iso_8601": "2024-12-03T03:19:47.447562Z",
"url": "https://files.pythonhosted.org/packages/bd/da/d2c6d69863163d0b82d5d9852e384c3fadaac99ef78a1f91aed7842dc157/codeboxapi-0.2.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "601ee9bbca0b8cf3a84f05650f504589979b1fdd85bfc40a954f26858c6a2c41",
"md5": "58abf22577bc0cdb5e0a46d60e541a5b",
"sha256": "c2a00b79db6143e7fc779fec9afd352c2eefc46687cc70a54fc4dd41e037fdd9"
},
"downloads": -1,
"filename": "codeboxapi-0.2.5.tar.gz",
"has_sig": false,
"md5_digest": "58abf22577bc0cdb5e0a46d60e541a5b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 27790,
"upload_time": "2024-12-03T03:19:49",
"upload_time_iso_8601": "2024-12-03T03:19:49.839676Z",
"url": "https://files.pythonhosted.org/packages/60/1e/e9bbca0b8cf3a84f05650f504589979b1fdd85bfc40a954f26858c6a2c41/codeboxapi-0.2.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-03 03:19:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "shroominic",
"github_project": "codebox-api",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "codeboxapi"
}