Skip to main content

Python SDK for the Arrakis sandboxes - https://github.com/abshkbh/arrakis

Project description

py-arrakis

Python SDK for Arrakis.

Description

This package provides a Python SDK over the REST API exposed by Arrakis.

Installation

pip install py-arrakis

Usage

The SDK provides a simple interface to manage Arrakis sandbox VMs:

from py_arrakis import SandboxManager

# Initialize the sandbox manager with the Arrakis server URL
manager = SandboxManager("http://localhost:7000")

# List all VMs
sandboxes = manager.list_all()

# Start a new VM
sandbox = manager.start_sandbox("my-sandbox")

# Run a command in the VM
result = sandbox.run_cmd("echo hello world")
print(result["output"])

# Create a snapshot
snapshot_id = sandbox.snapshot("snapshot-v1")

# Destroy the VM when done
sandbox.destroy()

# Restore from snapshot
restored_sandbox = manager.restore("my-vm", snapshot_id)

For more examples, check out the cookbook.py file.

License

MIT

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

py_arrakis-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

py_arrakis-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file py_arrakis-0.1.1.tar.gz.

File metadata

  • Download URL: py_arrakis-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for py_arrakis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b1227b93cfd62c298420bab34d50a88f8169780c240387d64e2bf34368e8b81e
MD5 0e945330a3f6f3490b2bf3b592a51b31
BLAKE2b-256 81dec3c5fd3f992bd18af689e7e380d9a39ebdaafe7a29d6f381d451a1153791

See more details on using hashes here.

File details

Details for the file py_arrakis-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_arrakis-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for py_arrakis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86184ae9128d210d8185815d3419f3d913cabf026b31292182dcba7f3b7bd8e6
MD5 e740125abe5375a383fcea9f7d0f8af6
BLAKE2b-256 21c212168cf5275b518a8a61d1b09afbd897acfded41df91d32009f3e08f1959

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