codebox-api
codebox-api copied to clipboard
📦 CodeBox is the simplest cloud infrastructure for your LLM Apps and Services.
CodeBox
CodeBox is the simplest cloud infrastructure for your LLM Apps and Services. It allows you to run python code in an isolated/sandboxed environment. Additionally, it provides simple fileIO (and vector database support coming soon).
Installation
You can install CodeBox with pip:
pip install codeboxapi
Usage
export CODEBOX_API_KEY=sk-***************
from codeboxapi import CodeBox
# startup and automatically shutdown a new codebox
with CodeBox() as codebox:
# check if it's running
print(codebox.status())
# run some code
codebox.run("a = 'Hello'")
codebox.run("b = 'World!'")
codebox.run("result = a + ', ' + b")
result = codebox.run("print(result)")
print(result)
# Hello, World!
Where to get your api-key?
Checkout the pricing page 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 for things like refunds, sub cancellations, or upgrades.
Docs
Checkout the documentation for more details!
Contributing
Feel free to contribute to this project. You can open an issue or submit a pull request.
License
Contact
You can contact me at [email protected]