Skip to main content

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

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

# Make sure to set the api-key as environment variable:
# 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. As BetaTester you get 70% with the code BETA. 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.

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 contact@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.0.18.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

codeboxapi-0.0.18-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codeboxapi-0.0.18.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for codeboxapi-0.0.18.tar.gz
Algorithm Hash digest
SHA256 edf58eaf8bef1ddee0f9da06a432ddc1e35d133f9876ec0382512e9c6b5c9753
MD5 8b756631f83d1cc5186035599a5ba08d
BLAKE2b-256 e1e0f7cd2b7d30d5f461c4070252b411bb0a992dadba37fc9c0484b60f21f746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codeboxapi-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for codeboxapi-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a6581374b943212dcafab11d6a6185c09590de14d5e399cd37538c09f3143b
MD5 4375d964826699e655aa65593b143f86
BLAKE2b-256 0f6043ecdfe76d56643bb36353c5e02262a1b2a7911b04564f6d9a645a91b6e5

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