Generate pixel graphics for the Tidbyt
Project description
Indiepixel
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:
- Bump version in pyproject.toml
uv builduv 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file indiepixel-0.8.4.tar.gz.
File metadata
- Download URL: indiepixel-0.8.4.tar.gz
- Upload date:
- Size: 327.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
927db8d6299d12d990cc8f02c87802904597abc7aedf45ca62ac7e6eb029c090
|
|
| MD5 |
641d90a2536cd26083222d5a44506a3a
|
|
| BLAKE2b-256 |
6afecd5e750aa72d3f46b71f90931c4ad04f9acf577bb5dc2cf15918e7b46277
|
File details
Details for the file indiepixel-0.8.4-py3-none-any.whl.
File metadata
- Download URL: indiepixel-0.8.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb98582eae876a657f1f58a5c4755c269be7316742edb0645a154114be7eb2b0
|
|
| MD5 |
bcc7b8565ad379a1c0e94e68052d5293
|
|
| BLAKE2b-256 |
b6075275cb3fd510040e3f0645acf6ea29f5d2b05439a7a18d79472fdf6b9c3c
|