Skip to main content

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

dinky-0.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

dinky-0.1.3-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file dinky-0.1.3.tar.gz.

File metadata

  • Download URL: dinky-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for dinky-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9444d42c2c47db57e2e65fa43599a9e9087a5ddcadf15513516513c25282b396
MD5 2f7f1aead5d818cd47742bb16cf65a47
BLAKE2b-256 8245f625d68240981b2a6193ef4f80ab9ce54ddfbd3966f24bec1645cbbd6a8e

See more details on using hashes here.

Provenance

File details

Details for the file dinky-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dinky-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for dinky-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2102b26579785b1fe2d44862e70f452bc67ec9553a9dcb5b03c6aa6606cfb9d1
MD5 352d125a8b58b166501a51d999fb41ee
BLAKE2b-256 84da5a42c55fb2e9c862bbaa431de11c9b22e4713427cccda55aa0ed5d229f7b

See more details on using hashes here.

Provenance

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