Skip to main content

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

Project description

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

import codebox as cb

cb.set_api_key("your-api-key")
# or put your api key inside the .env file
# CODEBOX_API_KEY=your-api-key

# create and startup
codebox = CodeBox()
codebox.start()

# check if it's running
print(codebox.status() == "running")

# run some code
result = codebox.run("print('Hello, World!')")

# print the result
print(result)

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 pleurae-berets.0u@icloud.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeboxapi-0.0.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

codeboxapi-0.0.2-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page