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

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_arrakis-1.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-1.1.2.tar.gz
Algorithm Hash digest
SHA256 ce4f644b14f81a1c338f814b8ed5bb5aadb214fecdefca1844adbcdc0084cd70
MD5 1fb187845dbf7a408f63c7c827cdc77d
BLAKE2b-256 a6e7220bc1aa6d454709d7e5673f341eaf2aa1cd78fab08b4defa4faf915b520

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_arrakis-1.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-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21cd041e72d3a524f72cbabbc08e2dbe7f6ebe3d5a90a30a925fe233b6def301
MD5 009af854fd7db8406bcb0f03b5142d59
BLAKE2b-256 3062a008bea9d09ec354cc15aaba54f96aaf572fe16be734c847f8babcd1f567

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