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

Uploaded Source

Built Distributions

pywayland-0.4.9-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (581.0 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pywayland-0.4.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (654.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pywayland-0.4.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (654.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pywayland-0.4.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (654.6 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pywayland-0.4.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (653.8 kB view details)

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

File details

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

File metadata

  • Download URL: pywayland-0.4.9.tar.gz
  • Upload date:
  • Size: 194.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for pywayland-0.4.9.tar.gz
Algorithm Hash digest
SHA256 109fd49756692106b9330e949a4462ec60be6fe98232a86da3a12c7cd8e909d8
MD5 00c70823edc6f0f0cce5fa88d641fbda
BLAKE2b-256 f830ae363512fa251fd4af671f2cc18f9401f72c2f2229de1460b4826f0602f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.9-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95281c071db30957bf81cc62c233ed648b29aa6395296bddda7a5add50c3d792
MD5 7db94a8cd765e11d468bb97b929852e2
BLAKE2b-256 b7ae587305083d48a7c378dd4156ce937eefdc4f44a2cb11803ca0c2916a37cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91b191b9c64af4e4075a4f58e9e4cdad250d86a11c84946fafc2300027c25096
MD5 2b2c97af77fd78ae46f4250f992c9b9c
BLAKE2b-256 1cb3cd273b6b9935584edee872e2c3cf02d3b6a8ccbe891ce7b0d138fa4572b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2a85d65c45a4d6be78b508b15ef8db82b0e2b6f62bfaaa9d5f729efc08fa851
MD5 9b852c45f07c6701ee34f2868efb3c45
BLAKE2b-256 ebb76e4231448f68183ab68974da1d454abdd86a7046a23f2194f26e72fea755

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1eb034667009b82b0f3411f586cfaa8d619a16b0983b02faf251b4c501bc6ad
MD5 4fbf24dc4f892f82d0ecf3726916a88b
BLAKE2b-256 1ac10f125c87fac15a0d0b4027b277e07a88943ade24c7df6a626b82d7a2647c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pywayland-0.4.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9909da4faec274a498602d04dc6593b7a7de0ca977719b817e1e355e8364448f
MD5 8298ead0bbe8955ec837a67affba9c73
BLAKE2b-256 584daec920b87c86bbf5739cfcac45b15b7c1932824fb2ef7ca78d5c64b26b29

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