codebox-api

codebox-api

📦 CodeBox is the simplest cloud infrastructure for your LLM Apps and Services.

Stars: 270

Visit
 screenshot

CodeBox is a cloud infrastructure tool designed for running Python code in an isolated environment. It also offers simple file input/output capabilities and will soon support vector database operations. Users can install CodeBox using pip and utilize it by setting up an API key. The tool allows users to execute Python code snippets and interact with the isolated environment. CodeBox is currently in early development stages and requires manual handling for certain operations like refunds and cancellations. The tool is open for contributions through issue reporting and pull requests. It is licensed under MIT and can be contacted via email at [email protected].

README:

CodeBox

Version code-check Downloads License PyVersion

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?

CodeBox is currently in early development so I created a stripe payment link as login system. 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

MIT

Contact

You can contact me at [email protected]

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for codebox-api

Similar Open Source Tools

For similar tasks

For similar jobs