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

Uploaded Source

Built Distributions

pywayland-0.4.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pywayland-0.4.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pywayland-0.4.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.0 kB view details)

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

pywayland-0.4.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.0 kB view details)

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

File details

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

File metadata

  • Download URL: pywayland-0.4.5.tar.gz
  • Upload date:
  • Size: 185.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pywayland-0.4.5.tar.gz
Algorithm Hash digest
SHA256 a2d49575b44c4dc221fbc52dbc8b8acaf521a91a2900bd139c83dcf3b3bb2591
MD5 59d5a74ac026556f0b75c837f266c6b9
BLAKE2b-256 416cb9bf66cb2683dd94a9aa1645d2f08cb361161f65d9e6679371823bb3039c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 89524909a14d18da9b39175ae041cf8234a778dc092de10164506ebafecf2470
MD5 5609b9f027c7858c49933596988c7115
BLAKE2b-256 66262a5a3d4fe1301443692e11f13be508d64cf95e54fb4d88a71f95c24b2f35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfcd00e06ead71d9a80f3c3eb5a4ea881cc25d37a90c12530d7ba49825836eec
MD5 66228a268b22bb62240477f24e8d8055
BLAKE2b-256 643c04f09d99b942626c5a391a3a8a522a34548ad7bb6d98d1b40f77182f32fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c6bd678eb16397ab72a4ab38b424a449d0df864e9940cac37159073881148afc
MD5 451d1edca7d176b90516fa0058e1a9b7
BLAKE2b-256 27ce6b7d669d6e35105e792188178f9cc863e7db8f3c6b206a5a77caa7af2e28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9918798e8c120133fa08de5130921d009cbd29cea64bfc954abce56499ad7b0a
MD5 bab7f6904e5aa459d619ddcab405b811
BLAKE2b-256 32b4ea951b2fa8877f2d1bd8a3239cc88552472401cca5eaadf0f4bf1eac364d

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