Skip to main content

Python bindings for the libwayland library written in pure Python

Project description

Built against Wayland 1.20.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.8.tar.gz (194.6 kB view details)

Uploaded Source

Built Distributions

pywayland-0.4.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (581.0 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pywayland-0.4.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (654.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pywayland-0.4.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (654.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pywayland-0.4.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (654.6 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pywayland-0.4.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (653.8 kB view details)

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

File details

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

File metadata

  • Download URL: pywayland-0.4.8.tar.gz
  • Upload date:
  • Size: 194.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for pywayland-0.4.8.tar.gz
Algorithm Hash digest
SHA256 69b6f2e28f4b9a2459c0d90f8587c5396811b7153c7b90944509eeb73e9c5a34
MD5 5c0b3a3a68b96e1811061d46c5e2f806
BLAKE2b-256 4a6a49a2af75c73b3ebb896cdc5dc635e240eac211aaf4852273ccf665c1707a

See more details on using hashes here.

File details

Details for the file pywayland-0.4.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2c58522107c268d50e938a0e162d93b4c31d641d89eb93f7939a463a209592a0
MD5 06c50b62517c1823a5cdd581c76fac80
BLAKE2b-256 f6ad94f2e1e5518d634289ac2b32df07bbf75b07ffb4322a5ef81cac31f884e4

See more details on using hashes here.

File details

Details for the file pywayland-0.4.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 764fff9f20334f499134b92c40e983293d7b2d583e648a390ee3a0635d3e98c2
MD5 9780c83f15edf69ef43c15f6e8458f61
BLAKE2b-256 b277cd45dbcdd8e224f4227fc7f09155fe7d984956fef9c476fd221cfb1c9b65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 960e6ce6fbe7dbba0ffe3f6c1ffd680473d079cc4f86d688766dddf9496fbb1f
MD5 9e73339fbc089d6270ea66ff095f4062
BLAKE2b-256 f50f6307b005fdbfe49c011d7e3908495a2ea9fd9e3e2e8da58622240357d24c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d0246115c95f7e38fe1e13a893f6fa23b809a375c13b15a7be8032135857295
MD5 574492f539b3d3a051ba7eae29f145bb
BLAKE2b-256 1d93570136d9b36bf7c051d4428db7d7e4315a8761c7d4b9d30e3a912e032170

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0fd7bbce5adde816c506bf91d0c814aeb10fbff2e004ba74407dcc96a44f470
MD5 bbca78c909c9820b1c16fa35bb0ba533
BLAKE2b-256 915120215786577cb357c873b74c2dbd3673afac387d5b3883a3ac66a469b488

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