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

Uploaded Source

Built Distributions

pywayland-0.4.7-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (569.5 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pywayland-0.4.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (642.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pywayland-0.4.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (643.2 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pywayland-0.4.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (642.3 kB view details)

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

pywayland-0.4.7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (642.3 kB view details)

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

File details

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

File metadata

  • Download URL: pywayland-0.4.7.tar.gz
  • Upload date:
  • Size: 190.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pywayland-0.4.7.tar.gz
Algorithm Hash digest
SHA256 d0830d38f4e6636d8908771c215b99c43855af8d5c0dc28d931f1ba7ee61d825
MD5 346501f59b9af4a28ff05e80c5a6493e
BLAKE2b-256 057da3225fb041d7972cd174cf9bba3d5a39ede52c25b8bf8ab6f6231a3d722f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.7-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1e0943c4897e16a5febe7ca48bd164d19e31d7b2a2411475b93684e1ef8c9e5a
MD5 45aec16bf4e4696658229bf4df532b67
BLAKE2b-256 89d0d5a5e495d68f144e0386b06282eaf09fb1796a464ca144ebb2e8121157a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41c0e8da928c0d1fb2ee6e244082268299db9e6d6fba634b4f2698ffab2298d9
MD5 40470cef475babb6f7a6c7b21ecd8c7f
BLAKE2b-256 c2a80da059f07a7294d86c67654197c43d2e1a5803a8130b613fbd22b334f27c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f42f2158121994724254842caf3ad686695ad5805964bfe8cb38a7dc03b0cbca
MD5 8da4110bd946c543296a014066b36c44
BLAKE2b-256 6fb1b7a9e4aaaf22b4ae2a4788c879b8e55d461fc7d9cd9efe732c153e1c2fd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b3b4e16259901ea012df3c88f2d50a8e6a6ed004806158e87b63b084519668c
MD5 2231a55df8425668751fa2a7b0bf4a0c
BLAKE2b-256 f1b2ca0774ba4206793c041bf51563d5baacd744a0cbec4710e7d96b03f3c0f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 98426f3b753779c2a6e7d452547d8c5f9727ce0d000a1b792e2d464d0c9da0ac
MD5 7ca3f12fa100c4e905f66edce76ba853
BLAKE2b-256 c74fe995bea2257d68bda528bff3142ef2d750034a8c7bc7bcd1a0309361d640

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