Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shroominic/codebox-api
📦 CodeBox is the simplest cloud infrastructure for your LLM Apps and Services.
https://github.com/shroominic/codebox-api
code-interpreter infrastructure llm minimalistic prompt-engineering sandbox-environment
Last synced: 6 days ago
JSON representation
📦 CodeBox is the simplest cloud infrastructure for your LLM Apps and Services.
- Host: GitHub
- URL: https://github.com/shroominic/codebox-api
- Owner: shroominic
- License: mit
- Created: 2023-07-09T12:31:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T07:04:02.000Z (2 months ago)
- Last Synced: 2024-10-29T16:57:08.260Z (2 months ago)
- Topics: code-interpreter, infrastructure, llm, minimalistic, prompt-engineering, sandbox-environment
- Language: Python
- Homepage: https://codeboxapi.com
- Size: 1.01 MB
- Stars: 309
- Watchers: 4
- Forks: 39
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: roadmap.todo
Awesome Lists containing this project
README
# 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:[email protected]) 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 [[email protected]](mailto:[email protected])