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. 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 recieve 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.1.21.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

codeboxapi-0.1.21-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codeboxapi-0.1.21.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for codeboxapi-0.1.21.tar.gz
Algorithm Hash digest
SHA256 d3e9e4ed997c0855b0fabf9199e747b0956f8b8a6bc2d8458e296e06824c63ba
MD5 2de4c351322cc43ebaea2aa83b98f0d8
BLAKE2b-256 9e494fd2a7f743a86e502021963d02c0822731e333c13dac5a9d97d49eab5ebf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codeboxapi-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for codeboxapi-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 82e8acd0def20ed772b0a6be78dd8c4824378e499ba9cd513eaf1efe2640e7c1
MD5 e48ff7eece86e5f16eac6926bd61b943
BLAKE2b-256 f31a99bddcc5a6b329e05e749fa5d6c26e1109f184828e88b47e9493c97909cf

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