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-0.6.9.tar.gz (57.3 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-0.6.9-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencomputer_sdk-0.6.9.tar.gz
  • Upload date:
  • Size: 57.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for opencomputer_sdk-0.6.9.tar.gz
Algorithm Hash digest
SHA256 7dab43e36b6b389fa638da11b02fd3e12658f89a1bfcbf2c7d68947b3f7bad32
MD5 c45ca9966fd66b86125ef5405db19e80
BLAKE2b-256 a881bc1ce9bbe5b2dabc24bc22399ae2ec27a9267949290f0536afe4739d7ca6

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencomputer_sdk-0.6.9.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-0.6.9-py3-none-any.whl.

File metadata

File hashes

Hashes for opencomputer_sdk-0.6.9-py3-none-any.whl
Algorithm Hash digest
SHA256 dd84cfc4adf8f0a49b3e51b6e31ccb185238743ac6988e6b1c1b301432a3ee2c
MD5 af354cc6f2f6101b5df8e200f8642384
BLAKE2b-256 e3cba16c5d1a6fb76e152e1e5600e28b286beb6976b2577c19f892163c1d2e3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencomputer_sdk-0.6.9-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

1.1.0

2 files

1.0.0

2 files

This release

0.6.9 This release

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