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

Uploaded Source

Built Distributions

pywayland-0.4.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pywayland-0.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pywayland-0.4.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.0 kB view details)

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

pywayland-0.4.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.0 kB view details)

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

File details

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

File metadata

  • Download URL: pywayland-0.4.4.tar.gz
  • Upload date:
  • Size: 181.8 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.5

File hashes

Hashes for pywayland-0.4.4.tar.gz
Algorithm Hash digest
SHA256 25511a96fd01e7d18af89cd4a6da17d0372fb6e1fe985c147ccb53f8c90eb1cd
MD5 2eb4da4901d157c1b577ec1edc7e3695
BLAKE2b-256 8b4fd15e4e89d9a8e09e22000f4c3d3d8f58325fb6a7f4b7113a2d1325569efa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99fb834c4f56c47415d959a49b38b8e9e57178985f9b121f81a23271b4160d5b
MD5 be6731637548468d7292344b2f6fbf2b
BLAKE2b-256 42bb727bc0f7bfc2c28a8739785804b90a55de842f486e537ab3670cb05837f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64c2390672387b0492902ced94e3b40d855901d015524d0acf7a9812ae2646b9
MD5 dcad7b8e94065b549b80973f686dc2be
BLAKE2b-256 247ede90ff691c4d2d9fec9dafe171b66bd367a67388039674750cb5785ef2f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eb3a0a2fab667b85908becec58e55cf3d0bbba03210ec1b4f54c5f76cbfd3d76
MD5 a7011863200ce19e97feecbb9fb3523e
BLAKE2b-256 86cc7f0e4029b34a7c2a1cdce77bcdf4c6ee70dc5afacac7884b68191e582bb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2106817e957f51c0fbc0c5c0e3cdf1153c1f28667e12ad1fa688217460107d1
MD5 795492b322a4966a8ed8b7a2eecd1892
BLAKE2b-256 d9037dd83f6a0769a64f18de5a7f4b1e1dc51fd6b61ff3b931a4c689c0f61137

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