Skip to main content

Libraty providing a buffer interface to your Raspberry Pi's GPU layer. Usable with pygame, PIL and other graphics libraries.

Project description

DispmanX Bindings for Python

Documentation | Python Package Index

This is a Python library for interacting with the Raspberry Pi's DispmanX video API. Some use cases for this are,

  • Directly writing to the lowlevel graphics layer of your Pi with relatively high performance (for Python). There's no need to install X11.
  • Small pygame or Pillow-based applications can be overlayed onto the screen, with full support for transparency.

This library uses ctypes to directly interact with your Raspberry Pi's bcm_host.so library.

Usage

See the Quickstart section in the docs.

TODO List

  • Publish package to PyPI
  • Add API docs using MkDocs, Material for MkDocs, and mkdocstrings
  • Allow multiple layers
  • Support additional pixel types
  • Support custom dimensions and offsets – API supports it, but requires weird multiples of 16 or 32, as documented here. This requires testing, because anecdotally it seems to work with smaller multiples.
  • Test run over SSH onto my home pi

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

dispmanx-0.0.1.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

dispmanx-0.0.1-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

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