Skip to main content

Python bindings for the libwayland library written in pure Python

Project description

Built against Wayland 1.19.0

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.4.4 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


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

Uploaded Source

Built Distributions

pywayland-0.4.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (635.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pywayland-0.4.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (635.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pywayland-0.4.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (634.9 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pywayland-0.4.6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (634.9 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

File details

Details for the file pywayland-0.4.6.tar.gz.

File metadata

  • Download URL: pywayland-0.4.6.tar.gz
  • Upload date:
  • Size: 190.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for pywayland-0.4.6.tar.gz
Algorithm Hash digest
SHA256 79832644acec24747ff7538de7004dd8bb7dc7ec00a20a0513e42e40844dcdbf
MD5 96b44101220e072db176100af04eb8cf
BLAKE2b-256 f582c50fdc20983aad7f7dac79488999927dafcd42e7a0a88c1005a97fb706de

See more details on using hashes here.

File details

Details for the file pywayland-0.4.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 07b1770f3b027495f29fb028ad85d69a21fa3d55d438f0725232e5d3ebd9341b
MD5 1ead955c7bfe4b06371fcb22ab101483
BLAKE2b-256 b63edc96f7e28c050d1d9b5dd16d769a25718528014ffeafd54736d5f0010137

See more details on using hashes here.

File details

Details for the file pywayland-0.4.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e637c0d4930960d301ad5da0531a05d6c4c1645018129faa188bb9dbb5c3230
MD5 f06fbc406b30171391e80121f96901e1
BLAKE2b-256 aeae05ba454d1bf7b284ab612c077fe3c6a9b0db429da183e106f9d39cf2db2b

See more details on using hashes here.

File details

Details for the file pywayland-0.4.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81fde84aa52e33f17ec8c03da0a316eeb79254e74aaa14d76eb739259b0b64a6
MD5 2b094f120271a4100b9d55a20ccd6078
BLAKE2b-256 af54109b502f1e48fc8a2be907360c30f5ea5a97e22a7f2ae80e5eabbe882262

See more details on using hashes here.

File details

Details for the file pywayland-0.4.6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 58af511309b63c62ef3e390145be6770620ae66eaeb1f149a9a2d2b0f46fd1aa
MD5 62d094e7d2a388fe37dce8bbb9a9442e
BLAKE2b-256 895842b217f25b3b1883640d3e2f071809bc2143a479e429da7479cd95d37b41

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