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.8.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.8-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opencomputer_sdk-0.6.8.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.8.tar.gz
Algorithm Hash digest
SHA256 3cc3b8bc9cf4933dcc530b4c102ac0f49e9e17a8105967b2e816a03fedaed234
MD5 657c9f3173ef51a0d51f198ef0c81a77
BLAKE2b-256 0516ba04cd82b000f88d4842c75ad8391b7dcae3a2a5ecfd05f00da3b960bb47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opencomputer_sdk-0.6.8-py3-none-any.whl
Algorithm Hash digest
SHA256 28b59e286bcbf1d6ac31f6b05a7fcf6634342cedf2d8192712df903e2139de7a
MD5 b687f7c01299ec034b7c7d220c98de50
BLAKE2b-256 2ba7e7eebc1425ed75f569778380d5aed3a9a1e696dc4fd03a65ef3680f202c9

See more details on using hashes here.

Provenance

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

0.6.9

2 files

This release

0.6.8 This release

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