Skip to main content

Python bindings for the libwayland library written in pure Python

Project description

Built against Wayland 1.22.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 current version 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.16.tar.gz (218.8 kB view details)

Uploaded Source

Built Distributions

pywayland-0.4.16-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl (673.2 kB view details)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

pywayland-0.4.16-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl (673.2 kB view details)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

pywayland-0.4.16-cp311-cp311-manylinux_2_28_x86_64.whl (751.3 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

pywayland-0.4.16-cp310-cp310-manylinux_2_28_x86_64.whl (751.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

pywayland-0.4.16-cp39-cp39-manylinux_2_28_x86_64.whl (751.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

pywayland-0.4.16-cp38-cp38-manylinux_2_28_x86_64.whl (751.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: pywayland-0.4.16.tar.gz
  • Upload date:
  • Size: 218.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pywayland-0.4.16.tar.gz
Algorithm Hash digest
SHA256 aaa70c870b0ab365215f8e71505f73683c4ed15b1f3638433b1dc7344fe5b5dd
MD5 5a6e80ff4dccf993acdb593719f2296e
BLAKE2b-256 af302374a37204aff0238f3d1856b9b374da6c3ee1dfcd5bb8e88485443992e2

See more details on using hashes here.

File details

Details for the file pywayland-0.4.16-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.16-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 09c69a0da7f531d36267c77fa3f96bed2c297b1d784c924b86343fb9d5c11c85
MD5 456f1cd15f87d7d1d6e9987a7beebe6d
BLAKE2b-256 db8e672d913e0f52d9ddfd0c391c799ff51e7e96584a964a17ffdc98ad84b07e

See more details on using hashes here.

File details

Details for the file pywayland-0.4.16-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.16-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 608d48df3b4d870b0157f84233b57c35495956b396a54a9282fc42260669a685
MD5 cf459f783c79ff871de2d11542be2f87
BLAKE2b-256 75f49cc82928f43b210123447264b3a78d34ed1689498c0a4d231613d0f2cc95

See more details on using hashes here.

File details

Details for the file pywayland-0.4.16-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.16-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6d7bd879df8c51212f093fb0c0a3d1a9afbc7f0b28c12170eefcbd24da7e9b9
MD5 00d211b49b7531937990569447076b60
BLAKE2b-256 d59050df7095865dc705dfa93df692a253d48345ae47be0204829b5c8b0a7877

See more details on using hashes here.

File details

Details for the file pywayland-0.4.16-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.16-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 078b7cc7eb44691a60a4d67afad4ede54a6fa217c3af6bbd0232bb6980755a83
MD5 580107736d5445044b04c54aa2ae735a
BLAKE2b-256 961b03cfb572c639e63c3cfc8e9b99627dce0e2f76716bf7b726963f4c11da4c

See more details on using hashes here.

File details

Details for the file pywayland-0.4.16-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.16-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0f22d1500269cc2cea33fcd4d3396a6b145b96218c32b318fbec191affb40285
MD5 2ced6c416dbd9ab35e737437a5d2c75d
BLAKE2b-256 9ae3cb3666c190ff24a55c37766b5d773ebfc5e68fba6b3d78ab394d7c4c4c52

See more details on using hashes here.

File details

Details for the file pywayland-0.4.16-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.16-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 48461f57ad9147352d3e3eb3f5c6ba750a7a3034108eaaa3146af8dcc9be6e51
MD5 0480038ddbd0764496e112824f21b2cc
BLAKE2b-256 348d1e55a6c20090a123ba1847ec74c08aa3ae2ae5f6d1d6c07bfe90a3f68617

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