Home dashboard for the Inkyframe
Project description
dinky
Dashboard generator for e-ink devices such as the Inky Frame.
Installation
Install this library using pip
:
pip install dinky
dinky is only a dashboard manager. It relies on widgets that fill the dashboard. Install your first widget also using pip
:
pip install dinky-calendar
Usage
A small Python script is enough to generate your dashboard.
Start by instantiating the DashboardManager with a layout of your choice:
from dinky.dashboard_manager import DashboardManager
from dinky.layouts.column_grid_layout import ColumnGridLayout
dm = DashboardManager(layout_configuration=ColumnGridLayout(padding=5))
Then register your first widget and specify the zone in which you want it displayed:
from dinky_calendar import DinkyCalendarPlugin
dm.register(DinkyCalendarPlugin(), name="A")
Finally, draw your dashboard:
dm.draw_dashboard()
The dashboard can now be displayed on your e-ink device.
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd dinky
python -m venv .venv
source .venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
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
Built Distribution
File details
Details for the file dinky-0.2.tar.gz
.
File metadata
- Download URL: dinky-0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c31a041560d37e926699d1963ff98b7c6e0202fa37b1f1807e1d7b638bb76e3 |
|
MD5 | 9eba2efb9200253db29b14f42d1f592d |
|
BLAKE2b-256 | 796a152e418a81603ca11460375f8c51aae93d4de2a4df81de63aa91cce3b46e |
Provenance
File details
Details for the file dinky-0.2-py3-none-any.whl
.
File metadata
- Download URL: dinky-0.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e16895de327341a48f21ddb1065a3fb9d5237ec1b3e495f21337c89cbd8915 |
|
MD5 | 30a7f5dd972ddc7f535dad00970f7495 |
|
BLAKE2b-256 | 644bbe217696b999aa44ac8c1e6ccdebf86b7128a89b28c1e75635c05bd1ca95 |