Skip to main content

Python bindings for the libwayland library written in pure Python

Project description

PyWayland provides a wrapper to the libwayland library using the CFFI library to provide access to the Wayland library calls and written in pure Python.

Current Release

PyWayland is still in a developmental state. An initial version 0.0.1a.dev1 is available on the cheese shop. Current development versions can be obtained from the git repository, feedback, as well as any bug reports or fixes are highly appreciated.

Dependencies

PyWayland requires six and cffi to run on Python >=3.4. On lower Python versions, enum34 is required. PyWayland is tested against Python 2.7, 3.2+, PyPy, and PyPy3 (see Running Tests).

Building Wayland protocols

In order to run, you will need to generate the interfaces to the Wayland protocol objects as defined in the wayland.xml file. By default, this file will be located in /usr/share/wayland/wayland.xml. In this case, the protocol files can be generated by the scanner by simply running the script:

$ python ./bin/pywayland-scanner.py

See the help for this script to use non-default locations for the input and output of the scanner.

The scanner is installed as a script pywayland-scanner.py when PyWayland is installed.

Running Tests

PyWayland implements a (currently limited) test-suite in ./tests. The tests can be run through py.test. Be sure you build the protocol files (see Building Wayland protocols) before running the tests.

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

pywayland-0.0.1a0.dev1.tar.gz (18.6 kB view details)

Uploaded Source

File details

Details for the file pywayland-0.0.1a0.dev1.tar.gz.

File metadata

File hashes

Hashes for pywayland-0.0.1a0.dev1.tar.gz
Algorithm Hash digest
SHA256 f291a3956397f502c5bde5105c3d5e5502ced35d19d3ca50a1918b8626020d14
MD5 785c5c5a944dd4f446eabefb8d023927
BLAKE2b-256 7fc44b457aa1f3690b4f265f8e2272ad6f943d2b0c89fc8a265b5def36315510

See more details on using hashes here.

Supported by

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