Development
Requirements
- Python 3.12+ and uv.
- The system packages from the installer’s step 1: cairo and its headers, pkg-config, a C compiler, the ALSA library and libusb.
Stop the background service while developing (systemctl --user stop pushtoo), since only one Pushtoo runs at a time.
Commands
uv sync
uv run pytest
uv run ruff check
uv run pushtoo # -v for a detailed log, --fps to set the screen rate
uv run pushtoo doctor
uvx --from shellcheck-py shellcheck -s sh install.sh
uv run python tools/render_preview.py # every screen as PNG, no hardware needed
uv run python tools/docs_graphics.py # these docs' drawings and screens; re-run after UI changes
uv run python tools/latency/latency.py # latency gate; needs Push attached
uv run python tools/clock/jitter.py # clock timing gate (p99 < 1 ms); needs ALSA
These docs
The site is built by GitHub Pages from docs/ with Just the Docs. The Push drawings and screens in docs/images/ come from the app itself: run tools/docs_graphics.py after changing the screen or the LEDs, and commit what it writes. To preview the site locally:
cd docs
bundle install
bundle exec jekyll serve
Project structure
| Path | Contents |
|---|---|
pushtoo/ |
The application package |
tests/ |
Unit tests (no hardware required) |
tools/ |
Screen previews, the latency gate and the clock gate |
spikes/ |
A throwaway hardware probe: display throughput, input and hotplug events |
packaging/ |
The udev rule and the systemd user service |
install.sh |
The one-command installer |
docs/ |
This site, the PRD and architecture decision records |
legacy/pysha/ |
Original Pysha code, kept as reference while porting |
LICENSES/ |
Licenses of included work (Pysha, IBM Plex) |
Credits
Pushtoo is a fork of Pysha by Frederic Font and uses a fork of his push2-python. Both are MIT licensed; Pysha’s MIT notice is kept in LICENSES/MIT-Pysha.txt. The screen font is IBM Plex Sans Condensed, under the SIL Open Font License.
License
Pushtoo is free software under the GNU General Public License, version 3 or (at your option) any later version. Versions up to commit 55fea34 were released under the MIT License.