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

Uploaded Source

Built Distributions

pywayland-0.4.12-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (596.2 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pywayland-0.4.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (669.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pywayland-0.4.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (669.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pywayland-0.4.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (669.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pywayland-0.4.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (668.9 kB view details)

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

File details

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

File metadata

  • Download URL: pywayland-0.4.12.tar.gz
  • Upload date:
  • Size: 202.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pywayland-0.4.12.tar.gz
Algorithm Hash digest
SHA256 200c01cd5fb0bd0620a092b5f868c01e6d9a5d613689568c57671db8cb42931f
MD5 998d05490ad227cda7a1cb22fc6758a7
BLAKE2b-256 0c9442ee341af93ccdc55603c1d9165e1a5e832a02978cd36ff8b0b5bd447c42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.12-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b88eb0a9f661f6378cc521cdea5fcb27dd6733403415a12e24bed1c3fed1e04
MD5 f56d1beab5cc38f25e04d948649a2d2c
BLAKE2b-256 fcafa90016ed637ed190dfe1ec9610eafb157e481837e38a09c8790bb2b2047e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54b411489d1000628ff39e2056ed55474ca029ec0f50e628a07ab17b2ff901bc
MD5 7bb01a6f8de370f8013803d1da0c5eef
BLAKE2b-256 7b153a6109b6c1812d3f0247a343b674590228e1472a5ec9d67a0fa5b5a67602

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 18bc2bfc4c5716dc6dce6d071f8ecbff8b078179442ec58d5e9a8d0438b84df9
MD5 6d34c3e75451e79ad155efdc55723d8f
BLAKE2b-256 8af27070a4e1a5df811833f6d6a67a848714d35b49d4332a11d5c864021f84e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2ac19df9ab951b2246f1241a59f36d4cb474eb9410f595f555438ca6986c9b68
MD5 a1c253c9f80ffd8c04addcf17d0e6ba6
BLAKE2b-256 621d953eade9a5eb20fc476953b9d1c1c58b5d66ffb170231b44b94af5a36ee2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7f434b5d6d7d0c12e9086cf7f848c762d0c4ba1b7efb2c98bd4be1ca1dc8b69c
MD5 a8ed0b53419a3c7df1b686b9ad937cba
BLAKE2b-256 458e711b4d26625d62f008b82dc259edd8421afb4fc7d1d1e6551dc929d23a67

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