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-1.2.2.tar.gz (5.1 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-1.2.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for py_arrakis-1.2.2.tar.gz
Algorithm Hash digest
SHA256 32959adb8b8f67375118e3b741fb18b833dce14ae4855cc8ff1cd94a3c7292e0
MD5 e1f8373db6390c927a9c82ce5199499a
BLAKE2b-256 e82b5b7539dca8c626a161023f5ac3b37b7f9dfea1b264c98d8351b7d8de3804

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_arrakis-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2e26a5c0b5bc63f18e99a2c50b746e0e38cf6fa11c70c6bdaeeb6b13cecef771
MD5 1d838d157afda373f77600491bd0ad3f
BLAKE2b-256 3279e6fc487e81d53ec969826b091fecd99a8e4fd34e3b41c3c3a3c8b7dcda8e

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