High-level Python API for Sony Alpha cameras via CrSDK v1.
You can install via pip with:
pip install sonyalphapy
-
Connect camera via USB
-
Select "Remote Shooting" (or "PC Remote", depending on your model/firmware)
-
Run:
import sonyalphapy as sony sony.initialize() cameras = sony.enumerate_cameras() cam = cameras[0] cam.connect() cam.capture_af() cam.disconnect() sony.shutdown()
- This is still quite fragile. See
CrSDK_v1/Sony_CameraRemoteSDK_API-Reference_v1.08.00.pdfPDF to get connected. - I have only tested it on macOS 26 with the Sony ILCE-7M4 (Sony a7IV)
- The
CrSDK_v1/directory includes the original C++ SDK from Sony directly. - A good sanity check is to make sure the Imaging Edge Desktop Remote application works correctly.