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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-arrakis-2.0.0.tar.gz | 5.0 kB | Without provenance | Details for py-arrakis-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_arrakis-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for py_arrakis-2.0.0-py3-none-any.whl |
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
|
Security for py-arrakis 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.