Skip to main content

opencomputer

Python SDK for OpenComputer — cloud sandbox platform.

Install

pip install opencomputer-sdk

Quick Start

import asyncio
from opencomputer import Sandbox

async def main():
    sandbox = await Sandbox.create(template="base")

    # Execute commands
    result = await sandbox.commands.run("echo hello")
    print(result.stdout)  # "hello\n"

    # Read and write files
    await sandbox.files.write("/tmp/test.txt", "Hello, world!")
    content = await sandbox.files.read("/tmp/test.txt")

    # Clean up
    await sandbox.kill()
    await sandbox.close()

asyncio.run(main())

Configuration

Parameter Env Variable Default
api_url OPENCOMPUTER_API_URL https://app.opencomputer.dev
api_key OPENCOMPUTER_API_KEY (none)

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opencomputer_sdk-1.1.0.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

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

opencomputer_sdk-1.1.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file opencomputer_sdk-1.1.0.tar.gz.

File metadata

  • Download URL: opencomputer_sdk-1.1.0.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for opencomputer_sdk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ab28a662af91d75eb772918afd7356f1dae3d52d89482d6a4d74aac79d3e62fe
MD5 e55270d9104a8ed5de6dcd2e6c572e4b
BLAKE2b-256 3a062d230c016616a0761e4b9025da70c3f5d23113534807cac75334abec5428

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencomputer_sdk-1.1.0.tar.gz:

Publisher: publish-python-sdk.yml on diggerhq/opencomputer

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

File details

Details for the file opencomputer_sdk-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opencomputer_sdk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fac04abf38301b7fcf198e7d7f2c02b635af40bca0791fc33e1a80554a38dbd8
MD5 544cbac68bc7c313b0a9e7b72d3a192e
BLAKE2b-256 bf420410226b1e4798af2c495aaeee43f03e9a2ade367e3e9dafed38020fdb7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencomputer_sdk-1.1.0-py3-none-any.whl:

Publisher: publish-python-sdk.yml on diggerhq/opencomputer

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.0

2 files

0.6.9

2 files

0.6.8

2 files

0.6.7

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.0

2 files

0.3.0

2 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