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

Uploaded Source

Built Distributions

pywayland-0.4.3-cp39-cp39-manylinux2014_x86_64.whl (615.7 kB view details)

Uploaded CPython 3.9

pywayland-0.4.3-cp38-cp38-manylinux2014_x86_64.whl (616.1 kB view details)

Uploaded CPython 3.8

pywayland-0.4.3-cp37-cp37m-manylinux2014_x86_64.whl (615.1 kB view details)

Uploaded CPython 3.7m

pywayland-0.4.3-cp36-cp36m-manylinux2014_x86_64.whl (615.1 kB view details)

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: pywayland-0.4.3.tar.gz
  • Upload date:
  • Size: 178.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pywayland-0.4.3.tar.gz
Algorithm Hash digest
SHA256 80ad1d0ca840c654e2e7bcb07688465b534f303cdbc184fe04858874a55c2795
MD5 f719fddd3421b09181003f5e57140a44
BLAKE2b-256 68f031aaa1671607dc4c2a7cda4c3e3742303a62ce4eb1e601578cd3d3546e00

See more details on using hashes here.

File details

Details for the file pywayland-0.4.3-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pywayland-0.4.3-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 615.7 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pywayland-0.4.3-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55bdf3ea93c5cc2f6f58536de7552cea120f882a0390e67c0e9bd6c74b7500de
MD5 fca55da7dc6fe4242829c9f89f438176
BLAKE2b-256 75b98c0e58851a075ea92271540a471e0a66bf1b8651861091437f95a16d106c

See more details on using hashes here.

File details

Details for the file pywayland-0.4.3-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pywayland-0.4.3-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 616.1 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pywayland-0.4.3-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5ad9e1701c0a089cd3b7b0d5996b8406ca0ba96d79c446c84fdd6ffbe1d0543c
MD5 ae0c4f82437d1920da9c871b3f6fb641
BLAKE2b-256 81e25f4583c14a60a381582d53c48aee8476fb4313334a6228d5c1ce560ee2a1

See more details on using hashes here.

File details

Details for the file pywayland-0.4.3-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pywayland-0.4.3-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 615.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pywayland-0.4.3-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0a18ff5f76f09a697931d4f5e270cb1513d2c51eefba9a710a633d11d8a08b1
MD5 2108c9d23437e282b049c38041ce54d5
BLAKE2b-256 0000d88e74c74bcbc25247547dd9844b0cb57dead105953c9e3a36b517d6bfb7

See more details on using hashes here.

File details

Details for the file pywayland-0.4.3-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pywayland-0.4.3-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 615.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for pywayland-0.4.3-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d0326a467fed03afa4cf8e0aa67762f73a8ea0c9cff298a48dc3a6553665e808
MD5 fd04498897d106570d576078ec7ccdd5
BLAKE2b-256 dd785cd7bcbdd848304ccf78b225bdfd4e12540d034fc54d305e8863dfa02b52

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