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.0.0.tar.gz (58.8 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.0.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencomputer_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 58.8 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.0.0.tar.gz
Algorithm Hash digest
SHA256 cac8b2bc805b7bcb8b8e15ea82d5083f66aaf8effb8f8ba7a9b153106023b500
MD5 6ed5a3d420a232ab0be0c94356186e22
BLAKE2b-256 f5f48af344e1c35f12ad8e86a9ddde95a800b4ba917d45dcb7da7750330f98c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opencomputer_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe8c23d194d2467777c19ea6e6f968a3fe815ae734d02187450c606b64b0c594
MD5 f466887ee6ee6eb13f39f3bd2b3628b0
BLAKE2b-256 803b33f614da1454d46ec41de81374d3e04d2d4c59d0dd63e0253c16a1ceadcf

See more details on using hashes here.

Provenance

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

1.1.0

2 files

This release

1.0.0 This release

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