Skip to main content

Loopix SDK that give agents cloud environments

Project description

Loopix Logo

Last 1 month downloads for the Python SDK

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

2. Get your Loopix API key

  1. Sign up to Loopix here.
  2. Get your API key here.
  3. Set environment variable with your 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loopix_sdk-2.30.0.tar.gz (182.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loopix_sdk-2.30.0-py3-none-any.whl (334.4 kB view details)

Uploaded Python 3

File details

Details for the file loopix_sdk-2.30.0.tar.gz.

File metadata

  • Download URL: loopix_sdk-2.30.0.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

Hashes for loopix_sdk-2.30.0.tar.gz
Algorithm Hash digest
SHA256 39c1e7c85e79fcb4d495e683d0638ffadd83090f5305b53650b89ffa2efc25ea
MD5 0bb70ad9cb33eb6a3b191f80decc9911
BLAKE2b-256 01fa56c9709c4c1a5c0b4daf449adac41c7ee925dd1809bb0ed15f13e1acac16

See more details on using hashes here.

File details

Details for the file loopix_sdk-2.30.0-py3-none-any.whl.

File metadata

  • Download URL: loopix_sdk-2.30.0-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

Hashes for loopix_sdk-2.30.0-py3-none-any.whl
Algorithm Hash digest
SHA256 618f3fb29a3820cff29acaf8619b7f100d749440d0ce2d5da698bc6516d3b761
MD5 0b60ab63fb3b432501a5d99cf92a2248
BLAKE2b-256 b72a0ee6111fac72aa35dc9ae543a0790925cda4a63cd0268c83ce87d0dadd93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page