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-2.30.0.tar.gz (182.1 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: loopix-2.30.0.tar.gz
  • Upload date:
  • Size: 182.1 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-2.30.0.tar.gz
Algorithm Hash digest
SHA256 a30db06c8defc6b0a49621dc6494e925c73bdb82ee9d7dfb9714e952a26aae90
MD5 6a15c630b6abb0d91a90136aac00c5c0
BLAKE2b-256 cf1366676689d9d5b52aee9dbe633a60c1bae2df95953b33905a15d9353b3937

See more details on using hashes here.

File details

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

File metadata

  • Download URL: loopix-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-2.30.0-py3-none-any.whl
Algorithm Hash digest
SHA256 427defa80d0630d4f681687e27725fd3f347410654d1449ea5f76a301339b588
MD5 9164a76a29123ee516fc0cf6f8297c55
BLAKE2b-256 932e8baac8829a1318bc5ffc3c87d0d40bec0ba1a92ad8ac54a28af5bc0f5452

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