Display library based on PIL/Pillow intended for Raspberry Pi applications running custom displays
Project description
Aurora Display Library for Python
Aurora Display Library is a small display library built on top of PIL/Pillow. It is intended to be used for building applications for LED/LCD displays, mostly targeted towards Raspberry Pis.
Origin
This library was created out of a project of mine where a Raspberry Pi would run an RGB LED matrix display. I noticed that I was constantly writing the same code over and over again. It also started to become more difficult to test apps since they always had to run on that Pi with the display connected. Thus, abstraction happened and the code of what now is "Aurora" was born.
Core Features
- Abstracted Render Targets
- Abstracted Input Sources
- Utility functions for:
- Loading and managing resources (like fonts, images or colors)
- Placing text in other orientations (center and right aligned)
Other than that, PIL/Pillow is used for rendering, therefore everything that PIL/Pillow supports is doable here as well.
Included in the box
- PyGame Renderer and Input Source for local development
- Null Renderer and Input Source for testing without in- or output
- Demo applications found under
aurora.demoapps
If your output can work with PIL/Pillow, it is fairly easy to implement a renderer to output the screen buffer to it.
Installation
PIP
pip3 install aurora-display-lib
From Source
git clone ${REPO}/aurora-display-lib && cd aurora-display-lib
python3 setup.py install
Contribution
I would be happy to receive pull/merge requests from you for improvements. Also feel free to report any renderers, input sources, etc. you've created so they can be linked here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aurora-display-lib-1.0.0.dev20220104173716.tar.gz
.
File metadata
- Download URL: aurora-display-lib-1.0.0.dev20220104173716.tar.gz
- Upload date:
- Size: 150.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e2576697f92d68328181505aa4ed9d0a0e74cf7860cde1b8c78e9e6a56753cc |
|
MD5 | a10449832f232ce443ddbe7d4d7e5f95 |
|
BLAKE2b-256 | 68cc8140137ffe27fec401ce114e075f9e5cbab1028326052414a0e283a6d8b4 |
File details
Details for the file aurora_display_lib-1.0.0.dev20220104173716-py3-none-any.whl
.
File metadata
- Download URL: aurora_display_lib-1.0.0.dev20220104173716-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f64a180fcbb2cea5271e55087d3e77eaaef21d286d131a4f9f46c04579dbc912 |
|
MD5 | ac808b44d69e2b7f7d6673c1e46a329c |
|
BLAKE2b-256 | 589304214852393fab1864a17dca8ecab472562abfbe9ece3a22467560b9aeae |