Cybercafe Python Library
Project description
Cybercafe Python Library
Generate an API Key
Sign up at Cybercafe and generate an API key from the dashboard.
Install the SDK
Install the SDK using pip:
pip install cybercafe
Configure the Client
Import and configure the Cybercafe client with your API key:
from cybercafe import Cybercafe
client = Cybercafe("YOUR_API_KEY")
Connect to a Space
Connect to a running Space using its SPACE_ID:
space = client.space("SPACE_ID")
Interact with the Space
Use controllers to interact with the Space. For example, take a screenshot:
import base64
import asyncio
async def main():
image_base64 = await space.Screen.screenshot()
image_bytes = base64.b64decode(image_base64)
with open("screenshot.png", "wb") as f:
f.write(image_bytes)
asyncio.run(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cybercafe-0.1.2.tar.gz
(7.9 kB
view details)
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
cybercafe-0.1.2-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file cybercafe-0.1.2.tar.gz.
File metadata
- Download URL: cybercafe-0.1.2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e17e28d30edba8c8d2dd12adf4567976dcc8740842d1352d4c3388e535dde1
|
|
| MD5 |
9c46b03ad1f884fdf7c1dbc953d0ddd4
|
|
| BLAKE2b-256 |
131825441bbce13bd512092e1c322de35730f223f2de202f8e8f83f75a010c80
|
File details
Details for the file cybercafe-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cybercafe-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d3897b4ac31a1f2b19eec79692ba4137beb7cd4c2d3f7790fccd599bf545e31
|
|
| MD5 |
a6f4a15c118aaed419ed76486bd15239
|
|
| BLAKE2b-256 |
2723c47ea308616c7aa6db491e704a0da90a0044b2d37832600b6d9e523e8ead
|