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.3.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.3.0-py3-none-any.whl (260.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: indiepixel-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 a697c35b36b63517646b34fd63a4de0317eee0f4ff8c8d35b865dbf8b9c7d3fd
MD5 e5bf0618b70d0ff995d39955ea7b96f2
BLAKE2b-256 5d2c2526f27967f969ed50714222c5c8319c2f7c4fa01bd25143819bad55d914

See more details on using hashes here.

File details

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

File metadata

  • Download URL: indiepixel-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2e03ced44d61ffd751f12370e2671ccd5e7164a253def4b43891b340e9f364f
MD5 37561191b2867d3bf4716322736b9412
BLAKE2b-256 0e7cbc526904d9a38c3767beef84a437efebaeeea7fca2bd894b532de96ddfef

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