Skip to main content

displaypad-lib

Python library for controlling the Mountain DisplayPad. Built on displaypad-driver.

For full documentation, see the project wiki.

What's included

  • DisplayPad — main class. Manages pages, keys, and the update loop.
  • Key (base class) — subclass and implement render(ctx). Override lifecycle hooks (on_press, on_release, on_double_press, on_long_press, on_tick, on_mount) as needed.
  • Built-in key types: GifKey, IconKey, LabelKey, FramerateLimitedKey, LoggerKey.
  • Page / PageManager — named 12-key layouts with optional auto-timeout navigation.
  • KeyContext — drawing context passed to render(), wrapping a per-key PIL canvas.

Quick start

from displaypad_lib import DisplayPad, LabelKey

pad = DisplayPad()
pad[0] = LabelKey("Hello", bg_color="navy")

try:
    while True:
        pad.update()
except KeyboardInterrupt:
    pass
finally:
    pad.disable()

For usage examples, see lib_example.py and clock.py.

Acknowledgments

Multi-page layout engine design, auto-timeout page transitions, and responsive async rendering were built with inspiration from ramisotti13-eng/BaseCamp-Linux.

Metadata

Release files for displaypad-lib 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for displaypad-lib 2.0.0
File Size Uploaded Provenance Actions
displaypad_lib-2.0.0.tar.gz 11.5 kB Without provenance Details for displaypad_lib-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for displaypad-lib 2.0.0
File Interpreter ABI Platform Actions
displaypad_lib-2.0.0-py3-none-any.whl Python 3 none any Details for displaypad_lib-2.0.0-py3-none-any.whl

Total release size: 24.7 kB

Release files / displaypad_lib-2.0.0.tar.gz

Download URL displaypad_lib-2.0.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d00750c08e2af63ae1e84772d5677b5cb77172cab57cef34a041e7c958c19e55
BLAKE2b-256 checksum
How to use checksums
ebca85cebaff0f35e76496da4d9994419357f511576d917e8b7f633d0e0c4049
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.12.3 Linux/6.17.0-1022-azure

Release files / displaypad_lib-2.0.0-py3-none-any.whl

Download URL displaypad_lib-2.0.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4f840f42eeb3f07106ad51e878f920514a7e9f7b2ac5a948d8564fa1c213a21
BLAKE2b-256 checksum
How to use checksums
6b1e57c48bb600edb218da90955aa250af504a7116357bb8b9478b6dddde8b1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.12.3 Linux/6.17.0-1022-azure

Security for displaypad-lib 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page