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-sdk

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.1.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.1-py3-none-any.whl (334.4 kB view details)

Uploaded Python 3

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

Hashes for loopix_sdk-2.30.1.tar.gz
Algorithm Hash digest
SHA256 12dee2b450483a7cd6fe795aba59944cd84111cf5e925e828baa4a435edde4be
MD5 798b092639da52368a62aabdb3d66c41
BLAKE2b-256 aad672fb2bf878d69a85c6693cc4c440c48aa693c5d63230b569fae1bbb75b52

See more details on using hashes here.

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

Hashes for loopix_sdk-2.30.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6173c309574eed87510f4df573ad9be52808eb637a00869e71a5ebdec9cf3af1
MD5 e413831247cc0a92d693a01b45b49865
BLAKE2b-256 e36c85a9a9e5f627335097c40a77fae49e99d271b4402afae912464c6abfc2d9

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