Skip to main content

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

Metadata

Release files for codeboxapi 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codeboxapi 0.2.6
File Size Uploaded
codeboxapi-0.2.6.tar.gz 27.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codeboxapi 0.2.6
File Interpreter ABI Platform
codeboxapi-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 44.9 kB

Release files / codeboxapi-0.2.6.tar.gz

Download URL codeboxapi-0.2.6.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
400fa997f4762cc18db4d22b7e626469d68808b2904a722846dc419d7e653b64
BLAKE2b-256 checksum
How to use checksums
5cdfc5ce4d44bdad5c33375e4dd1c1e5ac84f0df582be4ed987938132ab3a1b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / codeboxapi-0.2.6-py3-none-any.whl

Download URL codeboxapi-0.2.6-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f698d16a6ad76eed2a47999af3873e20f7273fb7d451b06fdce1ef8de2f5456
BLAKE2b-256 checksum
How to use checksums
2d6ec3319405b0a5395cfd336fb730cb4cf516095d3c2aa2dffc81eca500fe11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.21

2 release files

0.0.19

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page