GROTTE SDK that give agents cloud environments
Project description
What is GROTTE?
GROTTE is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our JavaScript SDK or Python SDK.
Run your first Sandbox
1. Install SDK
pip install grotte
2. Get your GROTTE API key
GROTTE_API_KEY=grt_***
3. Start a sandbox and run commands
from grotte import Sandbox
with Sandbox.create() as sandbox:
result = sandbox.commands.run('echo "Hello from GROTTE!"')
print(result.stdout) # Hello from GROTTE!
4. Code execution with Code Interpreter
If you need run_code(), install the Code Interpreter SDK:
pip install grotte-code-interpreter
from grt_code_interpreter import Sandbox
with Sandbox.create() as sandbox:
execution = sandbox.run_code("x = 1; x += 1; x")
print(execution.text) # outputs 2
5. Check docs
Visit GROTTE documentation.
6. GROTTE cookbook
Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grotte-0.1.0.tar.gz.
File metadata
- Download URL: grotte-0.1.0.tar.gz
- Upload date:
- Size: 157.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.0 CPython/3.12.3 Linux/6.17.0-23-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e49eb83be67a8d8293c0c8ae22fc7493382bfa989fe5597aadb60551c0d4fa84
|
|
| MD5 |
e236007c38db95cb8fe90b5a214f9f35
|
|
| BLAKE2b-256 |
0a062afd831fb90623f193fbead46a7f93de329192596838cd0204108a526308
|
File details
Details for the file grotte-0.1.0-py3-none-any.whl.
File metadata
- Download URL: grotte-0.1.0-py3-none-any.whl
- Upload date:
- Size: 298.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.0 CPython/3.12.3 Linux/6.17.0-23-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32849f0e55b697a4d16f7d7e338b3106ea2eccd1612efac550029e3ccfbff722
|
|
| MD5 |
6ebd1526e236cc5e5f7b83b1e2286993
|
|
| BLAKE2b-256 |
ff623bc8b6dbf2729f295b2867223f19670e77d3e03fdac0474ef2ed6639f3f2
|