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.4.2 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
Built Distributions
File details
Details for the file pywayland-0.4.2.tar.gz
.
File metadata
- Download URL: pywayland-0.4.2.tar.gz
- Upload date:
- Size: 178.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 509b4af4c652654b1e3cead6ec18e3d23ce8a50974614a4a0b8c296798626141 |
|
MD5 | fcd1fa487fe56a16ce04df196c191cf9 |
|
BLAKE2b-256 | ab01a84c3f5b4df5c7795bd560d5509fa8c2d7c8b46a64f352340f093efb6fe6 |
File details
Details for the file pywayland-0.4.2-cp39-cp39-manylinux2014_x86_64.whl
.
File metadata
- Download URL: pywayland-0.4.2-cp39-cp39-manylinux2014_x86_64.whl
- Upload date:
- Size: 615.6 kB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8707cbd0d072e6e9f4535bc10b144b9ea576226b24f1870972ba082a9d77f13 |
|
MD5 | 2b4594e2881acfe318794de8856406c3 |
|
BLAKE2b-256 | 2f82f8400affec1bd98e07b681692293398fd664b2a816f24e184f895ec52e48 |
File details
Details for the file pywayland-0.4.2-cp38-cp38-manylinux2014_x86_64.whl
.
File metadata
- Download URL: pywayland-0.4.2-cp38-cp38-manylinux2014_x86_64.whl
- Upload date:
- Size: 616.0 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7487c10f90f6953eec5454de582115a2d9077d1c60d03a468cfdd363d9863ba0 |
|
MD5 | bb9f642b5aa4d97ab3e31c6a7be633e0 |
|
BLAKE2b-256 | a116d57c66ed20ed5dc708e86c84d57aa47592c8934d599678fee01488ea7cf5 |
File details
Details for the file pywayland-0.4.2-cp37-cp37m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: pywayland-0.4.2-cp37-cp37m-manylinux2014_x86_64.whl
- Upload date:
- Size: 615.1 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eaf9376a1e037020ff66cad8c564ffacf3b9a44e07115bdbb57dc1e75c41284 |
|
MD5 | ad72846320d29b2d328cb96b8e84bd79 |
|
BLAKE2b-256 | 8544b8f57887e0591915f151383588662a72c8b72027121270c81724853b372d |
File details
Details for the file pywayland-0.4.2-cp36-cp36m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: pywayland-0.4.2-cp36-cp36m-manylinux2014_x86_64.whl
- Upload date:
- Size: 615.1 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 368e428f4d2a04d62ab4bbd63c78317fa9673493add102dcd00fafaef1181f40 |
|
MD5 | 4c8d6b47f51c50bf5d8564283effd397 |
|
BLAKE2b-256 | 0390ebf730c072a9e7917f92b4477e04cdac589d13b8652cc762def8d4923745 |