Skip to main content

CodeBox gives you an easy scalable and isolated python interpreter for your LLM Agents.

Project description

CodeBox

Version code-check Downloads License

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:

pip install codeboxapi

Usage

export CODEBOX_API_KEY=local # for local development
export CODEBOX_API_KEY=docker # for small projects
export CODEBOX_API_KEY=sk-*************** # for production
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 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

MIT

Contact

You can contact me at team@codeboxapi.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.2.4.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

codeboxapi-0.2.4-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file codeboxapi-0.2.4.tar.gz.

File metadata

  • Download URL: codeboxapi-0.2.4.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for codeboxapi-0.2.4.tar.gz
Algorithm Hash digest
SHA256 7beb0edd5ab8f09de2bfe4a550b3f760fd521fd40762646b7796b1d30b43dbab
MD5 f03a57b25d04390e1bd124a61f38c34f
BLAKE2b-256 46e9501664b0d64d287b412bd8d9375f87252431815a21dfd4f692cbdd16ccae

See more details on using hashes here.

File details

Details for the file codeboxapi-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: codeboxapi-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for codeboxapi-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f87ed0a410b5d25c5015ba0506ca5d372f06964b7a4d9de3f4ef5b16ff50c35d
MD5 9ca01092b44f92485f40f45221ec5cb3
BLAKE2b-256 4eeafca9a6b8966cec946f2f85a80d04efca1d2defa68b53d8a7d4fe90f97406

See more details on using hashes here.

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