https://courses.spatialthoughts.com/pyqgis-in-a-day.html#set-canvas-extent-to-a-layer-extent
QGIS 3 standalone Python script
https://gist.github.com/jgrocha/d75d50305e49ba044ff84e96a28f4ed8