Python SDK for OpenComputer - cloud sandbox platform
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opencomputer_sdk-0.4.9.tar.gz.
File metadata
- Download URL: opencomputer_sdk-0.4.9.tar.gz
- Upload date:
- Size: 33.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e69c495410eb8271b454e4b314e0009c0ac0fa6bc1a9bdc244f58e827f6547b
|
|
| MD5 |
a237cecc0986430e372dceb3117b8a4c
|
|
| BLAKE2b-256 |
ee4feccfeac71334597a7e46e72e9d43bc8bc82451c7d81bd08e31b54f54ed35
|
Provenance
The following attestation bundles were made for opencomputer_sdk-0.4.9.tar.gz:
Publisher:
publish-python-sdk.yml on diggerhq/opencomputer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opencomputer_sdk-0.4.9.tar.gz -
Subject digest:
7e69c495410eb8271b454e4b314e0009c0ac0fa6bc1a9bdc244f58e827f6547b - Sigstore transparency entry: 1130589216
- Sigstore integration time:
-
Permalink:
diggerhq/opencomputer@39a1178bc776e4a987df57839a36c1cbe24682fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/diggerhq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@39a1178bc776e4a987df57839a36c1cbe24682fc -
Trigger Event:
push
-
Statement type:
File details
Details for the file opencomputer_sdk-0.4.9-py3-none-any.whl.
File metadata
- Download URL: opencomputer_sdk-0.4.9-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c7bbce27167f539e3c101826c2118f11e2fbeadc2a177ccf30768702674547b
|
|
| MD5 |
68967531ba8d2e858fdb3c1f2efb85f0
|
|
| BLAKE2b-256 |
6a8a43c14adfa34756ad7bc9b64ccd3fec666c97357c0b7fccbfc9267e72076b
|
Provenance
The following attestation bundles were made for opencomputer_sdk-0.4.9-py3-none-any.whl:
Publisher:
publish-python-sdk.yml on diggerhq/opencomputer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opencomputer_sdk-0.4.9-py3-none-any.whl -
Subject digest:
7c7bbce27167f539e3c101826c2118f11e2fbeadc2a177ccf30768702674547b - Sigstore transparency entry: 1130589254
- Sigstore integration time:
-
Permalink:
diggerhq/opencomputer@39a1178bc776e4a987df57839a36c1cbe24682fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/diggerhq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@39a1178bc776e4a987df57839a36c1cbe24682fc -
Trigger Event:
push
-
Statement type: