Skip to main content

Hardware-accelerated Linux virtual desktop.

Project description

Bounce Desktop

Bounce desktop is a Python library for running subprocesses in hardware accelerated virtual desktops and for interacting with those desktops. It's built to provide isolated desktops for compute-use agents as a part of my BounceRL project.

Getting Started

Install the bounce_desktop package, then use the desktop as:

from bounce_desktop import WaylandDesktop

desktop = WaylandDesktop("/path/to/my/app", resolution=(640, 480), visible=False)

# Wait for desktop to be ready. Desktop.get_frame() throws RuntimeErrors
# if you call it before the compositor is ready.
...

desktop.move_mouse_to(200, 200)
desktop.mouse_press(button=1)
desktop.mouse_release(button=1)
...

The Desktop interface is described in desktopy.py and the constructor for WaylandDesktop is documented in wayland_desktop.py

System Dependencies

This package depends on labwc and wlr-randr.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

bounce_desktop-0.4.4-py3-none-any.whl (62.3 kB view details)

Uploaded Python 3

File details

Details for the file bounce_desktop-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: bounce_desktop-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 62.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for bounce_desktop-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9a64cf249524efb506df8d1542d3bf6b061f4b536f11fca5c05f83fd738361e9
MD5 1bb62dcd729e8ce1e12e903a02f0de19
BLAKE2b-256 6720a2882c61a2dee907bcbf3c79ac2ed4e026dbdaa7d3866d9e997b67b6a2fd

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