github alibaba/OpenSandbox python/sandbox/v0.1.1

3 months ago

Python SDK — Sandbox (v0.1.0 -> v.0.1.1)

Breaking Changes

  • API base URL now includes /v1

    • ConnectionConfig.get_base_url() appends /v1 (e.g. http(s)://<domain>/v1).
    • If your OPEN_SANDBOX_DOMAIN already included /v1, remove it to avoid .../v1/v1.
  • Sandbox IDs are now strings

    • IDs changed from UUID to str across Sandbox, SandboxManager, and lifecycle models (e.g. SandboxInfo, SandboxCreateResponse).

New Features

  • Skip readiness/health checks

    • Sandbox.create(...), Sandbox.connect(...), and Sandbox.resume(...) support skip_health_check to return immediately without waiting for readiness/health.
  • Extensions supported on sandbox creation

    • Sandbox creation supports extensions and passes them through to the lifecycle API request.
  • Sandbox lifecycle/state modeling

    • Added SandboxState constants and expanded state modeling.
  • Renew now returns a response

    • Sandbox.renew(...) / SandboxManager.renew_sandbox(...) now return SandboxRenewResponse (includes expires_at).

Improvements/Fixes

  • Pagination validation
    • Listing/filtering validates page_size > 0 and page >= 0.

Don't miss a new OpenSandbox release

NewReleases is sending notifications on new releases.