Skip to main content

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

Metadata

Release files for py-arrakis 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-arrakis 2.0.0
File Size Uploaded
py-arrakis-2.0.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-arrakis 2.0.0
File Interpreter ABI Platform
py_arrakis-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / py-arrakis-2.0.0.tar.gz

Download URL py-arrakis-2.0.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bec73db66fdc6f7b2bd0ab44e4016289aa4feb1938203ee7cdc9da9240224362
BLAKE2b-256 checksum
How to use checksums
44d6664b858a283e30a3407bc16675965c567980e0b98a78cb72a099655e8d01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release files / py_arrakis-2.0.0-py3-none-any.whl

Download URL py_arrakis-2.0.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3118dee89f4eef8c9df8facbab3d510c566bcfd9b27afe6d1c1fe2ac0bea0aba
BLAKE2b-256 checksum
How to use checksums
594efbd1631312c8fbb8395c093eb17d6531e6dec35affbaf6a194b971a12cbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.2.2

2 release files

1.1.2

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page