Using libcamera in python. Picamera2 also presents an easy to use Python API.

Using libcamera in python. Differences caused by the code being work-in-progress.