Skip to main content

Generate pixel graphics for the Tidbyt

Project description

Indiepixel

PyPI - Version

Contributions more than welcome!

Basically… pixlet in Python.

Why?

This is an example for generating images for the Tidbyt device, a nice LED display. The company that made the Tidbyt got acquihired and won't be developing the software much in the future.

Pixlet was very convenient, but is an oddball for a tech stack: implemented in Go for people to consume in Starlark. Starlark is a niche language. It'd be nice to support a mainstream language.

This is a WIP implementation of the same concepts as pixlet in Python.

Development

Environment setup

First make sure you have uv installed.

Install dependencies with:

uv sync

Install pre-commit hooks:

uv run pre-commit install

Running examples

To run examples/kitchen_sink.py:

uv run examples/kitchen_sink.py

Running tests

uv run pytest

Linting and formatting

uv run pre-commit run --all-files

Or run ruff directly

uv run ruff check
uv run ruff format --check

Status

  • WebP generation
  • Rendering the tb-8 pixel font without anti-aliasing
  • Components
    • Text
    • Box
    • Rect
    • Column
    • Row
    • Animation
    • Image
      • Resizing
      • Animation
    • PieChart
    • Plot
    • 'expand' option
    • WrappedText
  • Fonts

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

indiepixel-0.2.0.tar.gz (266.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

indiepixel-0.2.0-py3-none-any.whl (260.3 kB view details)

Uploaded Python 3

File details

Details for the file indiepixel-0.2.0.tar.gz.

File metadata

  • Download URL: indiepixel-0.2.0.tar.gz
  • Upload date:
  • Size: 266.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for indiepixel-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0f1eb007edc9ff9386637ae600d385aa4331d884c5e3f857e7b4e24567700fc0
MD5 ef563549fae36f72a1f9e90429daf616
BLAKE2b-256 4281ce54c50018b0c7c49d426491330e2c80eaa366a2ca79710068eb275996df

See more details on using hashes here.

File details

Details for the file indiepixel-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: indiepixel-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 260.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for indiepixel-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f0c9d9f554b097de9d765edf17304aaa91184372dcc65261c2bdf605549d243
MD5 ebd35a858e94b9faf45134195bc0a14b
BLAKE2b-256 0fca8f10646e6974295808b8c8d2251e7d10db40e0d9cd667761e30f0d4fcb59

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page