Loopix SDK that give agents cloud environments
Project description
What is Loopix?
Loopix 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 loopix-sdk
2. Get your Loopix API key
LOOPIX_API_KEY=lpx_***
3. Start a sandbox and run commands
from loopix import Sandbox
with Sandbox.create() as sandbox:
result = sandbox.commands.run('echo "Hello from Loopix!"')
print(result.stdout) # Hello from Loopix!
4. Code execution with Code Interpreter
If you need run_code(), install the Code Interpreter SDK:
pip install loopix-code-interpreter
from loopix_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 Loopix documentation.
6. Loopix 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 loopix_sdk-2.30.1.tar.gz.
File metadata
- Download URL: loopix_sdk-2.30.1.tar.gz
- Upload date:
- Size: 182.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12dee2b450483a7cd6fe795aba59944cd84111cf5e925e828baa4a435edde4be
|
|
| MD5 |
798b092639da52368a62aabdb3d66c41
|
|
| BLAKE2b-256 |
aad672fb2bf878d69a85c6693cc4c440c48aa693c5d63230b569fae1bbb75b52
|
File details
Details for the file loopix_sdk-2.30.1-py3-none-any.whl.
File metadata
- Download URL: loopix_sdk-2.30.1-py3-none-any.whl
- Upload date:
- Size: 334.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6173c309574eed87510f4df573ad9be52808eb637a00869e71a5ebdec9cf3af1
|
|
| MD5 |
e413831247cc0a92d693a01b45b49865
|
|
| BLAKE2b-256 |
e36c85a9a9e5f627335097c40a77fae49e99d271b4402afae912464c6abfc2d9
|