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

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_arrakis-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 daa1bca408a84b0c5268bbc9222ce110165e66ce9fc7e901d73d5aa7f13a9886
MD5 2c6213014cb0c1c1a0f8d961ee97cdd0
BLAKE2b-256 78b365c0734c3ccd0903236891965e708d00a3f256ed25f3378125b78f977902

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_arrakis-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8095eab0a2446698a1b7a350153c72bcdeb84c7d870b413dc3ba1b1d534e7521
MD5 fa1ed1821430bb7d98711a2e000c5ac7
BLAKE2b-256 0391b800a7bd81c69bd9ec58ace17514f318c02d2ecf943b6df0fb0e3b72afac

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