Skip to main content

Cybercafe Python Library

Project description

Cybercafe Python Library

PyPI version

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.3.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cybercafe-0.1.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file cybercafe-0.1.3.tar.gz.

File metadata

  • Download URL: cybercafe-0.1.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for cybercafe-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7f9457609c3b08dc230ff8c96eb6d5c3d4a60872faaed4494ec13dc4f1573294
MD5 81af6efd1988a3195f4c767172c52686
BLAKE2b-256 6b22ee6afd6b00716e708aeebf4dad626b5d1e8bfe29b6aa8a1564198692980d

See more details on using hashes here.

File details

Details for the file cybercafe-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cybercafe-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for cybercafe-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 50a10b88dc2b4be09b469350d55140ddd49ffdade057cddcaa61afbee677f806
MD5 b1368ab3c603c58ab43b6fdd002893c7
BLAKE2b-256 03109fd89a3e959840a4a25094d1d9933a0484cc41fd51bbf1ec21fa4cef8c93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page