Skip to main content

Python bindings for the libwayland library written in pure Python

Project description

Built against Wayland 1.8.1

Build Status Build Coverage Documentation Status

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.

Below is outlined some of the basics of PyWayland and how to get up and running. For more help, see the full documentation.

Current Release

PyWayland is still in a developmental state. An initial version 0.0.1a.dev5 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).

Installing

Installation can be done through pip to pull the most recently tagged release. To see instructions on running from sounce, see the relevant documentation on installing from source.

Building Wayland protocols

In order to run from source, 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 from the setup.py file:

$ python setup.py generate_protocol

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

The scanner is installed as a script pywayland-scanner when PyWayland is installed. See pywayland-scanner -h for more information.

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for pywayland-0.0.1a0.dev5.tar.gz
Algorithm Hash digest
SHA256 3763637bc5262eca7ffb298003f9797568e1c58e2988a4a2fc19d5131dcb7f43
MD5 0bd73b6216c547904baaf0964747ee20
BLAKE2b-256 22aff7af99abe24f8380ae5368dc68b4e01a81938b6cf6451e736333172c233d

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