Skip to main content

py-Vwayland

py-Vwayland logo

Spawn virtual Wayland compositors from Python, run GUI programs inside them, capture their screens, and inject mouse/keyboard events.

No desktop environment required: one program per compositor, fullscreen. The compositor is written in Rust (Smithay) and bundled into the package, so no system compositor or display server is needed (in headless mode).

import vwayland

with vwayland.spawn(width=1280, height=720, headless=True) as comp:
    comp.launch("my-gui-app")
    img = comp.screenshot()
    img.save("screen.png")
    comp.click(100, 200)
    comp.type_text("hello")
    comp.key("enter")

Installation

$ pip install py-vwayland

The wheel bundles the compositor binary and its native libraries, so headless mode works out of the box on any x86_64 Linux with glibc ≥ 2.28 — no display server, GPU, or extra packages required. For screenshot().to_pil():

$ pip install py-vwayland[pillow]

Quick sanity check:

$ python3 -c "import vwayland; c = vwayland.spawn(); print(c.info()); c.kill()"

Building from source and platform details (windowed mode, musl, other architectures): see docs/installation.md.

Key features

  • Create/list/terminate compositors (spawn, list, kill)
  • Open/close a program inside a compositor (launch, close_app)
  • Resize the screen (resize)
  • Switch between headless and windowed mode (set_headless)
  • Capture the screen (screenshot → PNG)
  • Mouse move/click/drag/scroll (move_to, click, drag, scroll)
  • Keyboard input (key, combo, type_text)

Documentation

See docs/ for full documentation.

License

Apache License 2.0 — see LICENSE.

Metadata

Release files for py-Vwayland 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-Vwayland 0.1.1
File Size Uploaded Provenance Actions
py_vwayland-0.1.1.tar.gz 2.9 MB With provenance Details for py_vwayland-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-Vwayland 0.1.1
File Interpreter ABI Platform Actions
py_vwayland-0.1.1-py3-none-any.whl Python 3 none any Details for py_vwayland-0.1.1-py3-none-any.whl

Total release size: 5.7 MB

Release files / py_vwayland-0.1.1.tar.gz

Download URL py_vwayland-0.1.1.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
b0cdc1ea5bbf67058ed744d2a92f903cbd76aa37727182f419083e0b95d0d0eb
BLAKE2b-256 checksum
How to use checksums
e74c9d1e9c414866af519cd8bff85ef413114bb4bc6831582ac62798ee847a1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / py_vwayland-0.1.1-py3-none-any.whl

Download URL py_vwayland-0.1.1-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fe1c2de4e8394cbf8a9a0c0e1a95737ab233808cb4e464bd44fd9c4d592ffe85
BLAKE2b-256 checksum
How to use checksums
b3276f7970e942ae960b279db1ab63608075f99090b46202aa87208926595377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Security for py-Vwayland 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for py_vwayland-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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