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 indiepixel examples/cli/gradient.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

Publishing

This needs you to build before publishing:

  1. Bump version in pyproject.toml
  2. uv build
  3. uv publish

Status

* = currently not tidbyt-compatible

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

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.8.3.tar.gz (327.0 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.8.3-py3-none-any.whl (315.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for indiepixel-0.8.3.tar.gz
Algorithm Hash digest
SHA256 ec525b851401bb82871d0ba9b58eeafcaafbbeee0e93d3b074e2b8b23b33c92b
MD5 d4587969adea5b04de61acf42dc80ca3
BLAKE2b-256 f1106adbafa2665d2b3fb542d406e2f2dee605963c046248fc493c3b6418b02b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for indiepixel-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b15ecd831dbe1efd271d1ee1c1132d3700ad1a0de09ce70b33f275d7aa88e90a
MD5 9254272ed9ea1ef5c8237c6de560b244
BLAKE2b-256 db8fb8d61d86a89c9d2da02d5dabd58afa92a189a647c899f06da18e250b5575

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