Skip to main content

Python SDK for run.cloud, including sandbox-provider compatibility adapters

Project description

runcloud

Python SDK for run.cloud.

pip install runcloud-sdk
export RUN_CLOUD_API_KEY="rc_live_..."
from runcloud import Client

cloud = Client()
box = cloud.create(image="runcloud/agent-base", cpu=2, memory=4096)
try:
    result = box.exec("python -V")
    print(result.stdout)
finally:
    box.destroy()

Compatibility adapters

The same distribution includes migration adapters:

Provider Import
Modal from runcloud.compat import modal
E2B from runcloud.compat.e2b import Sandbox
Daytona from runcloud.compat.daytona import Daytona
Vercel Sandbox from runcloud.compat.vercel import Sandbox
Blaxel async from runcloud.compat.blaxel import SandboxInstance
Blaxel sync from runcloud.compat.blaxel import SyncSandboxInstance
Fly Sprites from runcloud.compat.sprites import SpritesClient

Adapters cover creation, command execution, lookup/listing, and destruction where the upstream SDK exposes them. Blaxel's current SandboxInstance API is async; SyncSandboxInstance preserves its synchronous API. Unsupported provider-specific features raise UnsupportedCompatibilityFeatureError with a migration hint. They do not silently pretend that run.cloud implements a provider-specific feature.

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

runcloud_sdk-0.7.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runcloud_sdk-0.7.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file runcloud_sdk-0.7.0.tar.gz.

File metadata

  • Download URL: runcloud_sdk-0.7.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for runcloud_sdk-0.7.0.tar.gz
Algorithm Hash digest
SHA256 c4f42d6cee2a1d9341a4f9eb367dca4ffec2e3a689923b6d45b6d116a6ff36c9
MD5 f43b2670298b0bd7d5687cbcf5103798
BLAKE2b-256 c0327b7c3cc92366c7c99163ff3d413823cc70872db8df74f781deb8084d0c53

See more details on using hashes here.

Provenance

The following attestation bundles were made for runcloud_sdk-0.7.0.tar.gz:

Publisher: publish-run-cloud-python-sdk.yml on newly-app/newly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file runcloud_sdk-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: runcloud_sdk-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for runcloud_sdk-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a32560fd0addd2a0216b8dbb72bd116019120e531b104d11cbffa95a43956a8e
MD5 7bcc698e834abf13829e17b3a58f2c3b
BLAKE2b-256 40824e57cf65cdc9c404ca82f1422217180af6a85433d538514ee8ac37adb304

See more details on using hashes here.

Provenance

The following attestation bundles were made for runcloud_sdk-0.7.0-py3-none-any.whl:

Publisher: publish-run-cloud-python-sdk.yml on newly-app/newly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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