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:8080")

# List all VMs
vms = manager.list_all()

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

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

# Create a snapshot
snapshot_id = new_vm.take_snapshot("my-snapshot")

# Destroy the VM when done
new_vm.destroy()

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_arrakis-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d304228d4384b775f8006870e70b548e77e0329fe268ddab7d6554320d1b12fb
MD5 64bcfe0c024923eb1fb424cc21604ba8
BLAKE2b-256 8d5101f512da28f6608df0c86736cba9a006b5844955b56c4d28a1e15d9aff2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_arrakis-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60a4097738699510cf3d0ba2386013257531ac1f38e35ad90e3ebf857e096a77
MD5 cbe33ac85149acc84ad264f8ceb12560
BLAKE2b-256 abfa7adf08654fe0e1a27cc25f0e72fec628d50210f4bc4efb5e689d2cbb61e0

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