Native rl-platform SDK (Daytona-compatible interface).
Project description
rlp-sdk (Python)
Native rl-platform SDK with a Daytona-compatible interface (v0.190.x-shaped)
so existing Daytona code is near drop-in. It drives rl-platform's native API
(/vms, /daytona/snapshots) and the toolbox proxy directly.
Install
pip install rlp-sdk # or: uv pip install rlp-sdk
Quickstart
from rlp import Daytona, DaytonaConfig, CreateSandboxFromSnapshotParams
daytona = Daytona(DaytonaConfig(
api_url="http://<api-host>:8088", # native API root
api_key="rlp_...", # rlp-api mint-key <name>
toolbox_url="http://<proxy-host>:9000/toolbox",
))
# Cache a registry image as a snapshot (image alias).
from rlp import CreateSnapshotParams, Resources
snap = daytona.snapshot.create(
CreateSnapshotParams(name="py312", image="python:3.12-slim",
resources=Resources(cpu=1, memory=1, disk=1)),
on_logs=print,
)
# Create a sandbox from it and run a command.
sandbox = daytona.create(CreateSandboxFromSnapshotParams(snapshot="py312"))
r = sandbox.process.exec("echo hello")
print(r.exit_code, r.result)
daytona.delete(sandbox)
Configuration
| Field / env | Purpose |
|---|---|
api_url / RLP_API_URL / DAYTONA_API_URL |
Native control-plane API root |
api_key / RLP_API_KEY / DAYTONA_API_KEY |
Bearer API key (rlp_...) |
toolbox_url / RLP_TOOLBOX_URL |
Toolbox proxy base (.../toolbox); required for fs/git/process |
target / RLP_TARGET |
Optional region/target label |
rl-platform specifics vs Daytona
- No warm stop/start.
stop()/archive()raiseDaytonaNotSupportedError(HTTP 501 semantics).start()tolerates an already-running sandbox but cannot revive a stopped/failed one — recreate instead. - Create is async.
create()pollsGET /vms/:iduntilstarted. - Extras on create:
mode(burstable|dedicated), fractionalcpu,ports,docker_data_mib. sandbox.create_snapshot(name, kind)— native VM-state capture (disk/full), distinct from Daytona image-alias snapshots.sandbox.access_token— per-VM toolbox credential returned once on create.
Surface (v1)
Daytona (create/get/list/start/delete + snapshot service), Sandbox
(fs/git/process, create_snapshot, lifecycle), SnapshotService
(create/get/list/delete/activate), toolbox Process/FileSystem/Git, and the
full Daytona error hierarchy. PTY/LSP/ComputerUse/Volumes and async are deferred.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rlp_sdk-0.1.0.tar.gz.
File metadata
- Download URL: rlp_sdk-0.1.0.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56f417c2a653de94d1a401d287aaf73318fb73af71f911094db0b19593de8999
|
|
| MD5 |
920a9dda9a66497a9f2cb16c04251694
|
|
| BLAKE2b-256 |
39b6bc1fa87281c1e65f1e7f5ff681d89f8c24d2db4548907487dcb3e78c549c
|
File details
Details for the file rlp_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rlp_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61179fb6509c669e86a2e90f46611d7e18719650eba15fda1036471f8191597d
|
|
| MD5 |
8281d845f23077b5f5b1ac9e57e91c8a
|
|
| BLAKE2b-256 |
6da6cdb733e62e960b927fc35a4a4971061453c94529d70202a6e4315f703474
|