Python bindings for the libwayland library written in pure Python
Project description
Built against Wayland 1.19.0
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.2.1 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
Installing PyWayland requires the Wayland library and the headers to be installed.
PyWayland requires the cffi package to be installed. PyWayland runs and is tested against Python 3.6+, including sufficient versions of PyPy3 (see Running Tests).
See the installation guide for more information on installing required dependencies
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 by the scanner module:
$ python -m pywayland.scanner
See the help for this module 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 pytest. Be sure you build the protocol files (see Building Wayland protocols) before running the tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pywayland-0.4.0.tar.gz
.
File metadata
- Download URL: pywayland-0.4.0.tar.gz
- Upload date:
- Size: 225.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0e60a9ffdd94d7e3213debc2e961e468b63709e482a842a1916fc6bf493dbc8 |
|
MD5 | 141ee592c22175916508d5fdaaab7c5c |
|
BLAKE2b-256 | 14017ceae09d204c39e7fbcd6b136b9a42be7171bdc5b9aca532fa0df854cee6 |