Skip to main content

Python bindings for the libwayland library written in pure Python

Project description

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 source, 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.18.tar.gz (247.3 kB view details)

Uploaded Source

Built Distributions

pywayland-0.4.18-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl (758.1 kB view details)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

pywayland-0.4.18-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl (758.1 kB view details)

Uploaded PyPy manylinux: glibc 2.28+ x86-64

pywayland-0.4.18-cp312-cp312-manylinux_2_28_x86_64.whl (837.3 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.28+ x86-64

pywayland-0.4.18-cp311-cp311-manylinux_2_28_x86_64.whl (836.1 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

pywayland-0.4.18-cp310-cp310-manylinux_2_28_x86_64.whl (836.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

pywayland-0.4.18-cp39-cp39-manylinux_2_28_x86_64.whl (836.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

pywayland-0.4.18-cp38-cp38-manylinux_2_28_x86_64.whl (836.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: pywayland-0.4.18.tar.gz
  • Upload date:
  • Size: 247.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pywayland-0.4.18.tar.gz
Algorithm Hash digest
SHA256 598ade02783aad05a328f663b51b694c5ab68bd5d1e0926c0da3c5212c566533
MD5 4f553950fdff05eca4b1701fcc7ce89f
BLAKE2b-256 2093bc9b258dcb46aafc587438355a9170c3be05a6abb5cd55bf1d600d848fa0

See more details on using hashes here.

File details

Details for the file pywayland-0.4.18-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.18-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab2d74fee534d3519fac87a903148085e24dd076395e881ed2bdb3aa6bdd5882
MD5 5490163ea5b1e053e1874a88ef281b2d
BLAKE2b-256 de7ba41c0afe40bb67b46887f838930f99466b20595d35ab2239018512579c94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.18-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6e65ed9671c3ac90868fef96b02e3e6ef9a087aa5e559f2ad0cb6685a2d9958f
MD5 20a2a9c0875a22e2296a56e26f12b2f0
BLAKE2b-256 d7f659505eef144708749142c9cb9221b2b102522e852307dbd467902fa64713

See more details on using hashes here.

File details

Details for the file pywayland-0.4.18-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pywayland-0.4.18-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9bfa354df5bda91b94fbb6520543b8229d26cde1625f58c8741e647ef3ef5b4f
MD5 21980506a3dd9b32916f83cb45074856
BLAKE2b-256 3f3a1134f6e0badc62ae4db44486ba19d30f6af8c8ef4045cc8d099839c275fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.18-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cfb22d56c81add861ca5329ef3ffb16ed4d913f601fb70dfe5ae20a45c9f52dd
MD5 e56ff018ad4259046f9d6d9a86bed349
BLAKE2b-256 aa4a57071fa161e3d85f06e83bab5bb091648545499cc3b677782e7ac36623d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.18-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 de1d8dff2e79e7e6ddb71206254925af250a32dd4930500017ed3739ca41a134
MD5 64243233289ab1cd40fde7024cbb3005
BLAKE2b-256 6a50bf3e9d6effd59bd6c4b1ab32d2712426e19d23470b4bfdf25e128ed5b7e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.18-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6ac01ccefee3993c4f31af2a8da9fcef4edf4a49f7eaf8c0e4b98c5d7e6d13cd
MD5 6e46c50b5585a45ad06dbff2b05e38ec
BLAKE2b-256 93f739db2b67df3e568dfe49ec39aa7b47dc6b4a41da429a263471290326618d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.18-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d698d181c4aae2ea7422e18d76925d2adc01622f182660513743d8a69079ef0b
MD5 71584b635923522cb4eb570ccf4df26b
BLAKE2b-256 e0f5ab3b8489949ed2898bd6da3cd0e651d25ddd08ec9f85c427ea942ebdbef5

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