r/CardPuter • • 2d ago

Code Template for Python apps on CardputerZero

Post image

Got my CardputerZero last week and wanted to write apps in plain Python instead of C/LVGL with AppBuilder.

So I made a template first:

  • draws on the LCD with Pillow, reads the keyboard, no extra modules

  • your app gets its own icon in the launcher

  • packaged as a .deb, so apt can install/remove it

  • one-line install straight from GitHub

Try the example app:
curl -fsSL https://raw.githubusercontent.com/JulienBidouille/cz-python-template/main/get.sh | sh
(or read get.sh first / build it manually, it’s all in the README)

It doesn’t show up in the M5 AppStore, its not the purpose, that needs their official registry.
First release, feedback welcome!

https://github.com/JulienBidouille/cz-python-template

51 Upvotes

1 comment sorted by

3

u/Dear-Nail-5039 2d ago

Great idea, thanks! Smaller local models fail to write apps based on the official template, this will be much easier - as long as one does not need C performance.