Metadata-Version: 2.4
Name: sonyalphapy
Version: 0.1.0
Summary: Python bindings for the Sony Camera Remote SDK v1
License: MIT
Keywords: sony,alpha,camera,remote,sdk,ctypes
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Multimedia :: Graphics :: Capture
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

# sonyalphapy
High-level Python API for Sony Alpha cameras via CrSDK v1.

### Typical usage:

1. Connect camera via USB
2. Select "Remote Shooting" (or "PC Remote", depending on your model/firmware)
3. Run:

    ```python
    import sonyalphapy as sony
    
    sony.initialize()
    cameras = sony.enumerate_cameras()
    cam = cameras[0]
    cam.connect()
    cam.capture_af()
    cam.disconnect()
    sony.shutdown()
    ```

### Notes:
 - This is still quite fragile. See `CrSDK_v1/Sony_CameraRemoteSDK_API-Reference_v1.08.00.pdf` PDF 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](https://imagingedge.sony.net/en/ie-desktop.html) Remote application works correctly.
