Great examples, but it took me a while to run them because of the "no module called libcamera" issue till I found this:
https://forums.raspberrypi.com/viewtopic.php?t=361758
python3 -m venv --system-site-packages env
Maybe it's worth adding this to readme.
Thanks