alpha-sdk-client is the official Python client for the Alpha Camera REST API. It ships both sync (AlphaSDKClient) and async (AsyncAlphaSDKClient) variants and uses httpx for transport.
- PyPI:
alpha-sdk-client - Latest:
0.3.0 - Python: 3.8+
- Example app / notebook helper:
alpha-sdk-python
Install
localhost:8080. The Python client does not ship a ServerManager class — start the server using the Node-based CLI from the server package, or spawn the binary as a subprocess from Python (recipe).
Initialize
Constructor options
Async variant
await-able.
Common operations
List + connect a camera
Read a single property
Read every property at once
Set a property
Trigger the shutter
Pull a single live-view JPEG
client.live_view.enable_osd(camera_id=...):
Disconnect
Error handling
Every method raises a typed subclass ofApiError:
status_code, body (parsed dict), and headers. Network failures and timeouts raise httpx.HTTPError subclasses (not ApiError).
Advanced
Custom request options per call
Bring your own httpx.Client
Useful for proxying, retries, or testing:Pydantic models
Every response body is a Pydantic v2 model — use.model_dump() to serialize, .model_validate() to construct from a dict:
Use in a Jupyter notebook
The sync client works seamlessly in notebooks. For long-running async patterns inside Jupyter, useawait at the top level (Jupyter supports it natively):
What’s NOT in the client
By design, the following live in recipes rather than the generated SDK:- SSE events — use
httpx.stream()against/api/eventsand parsetext/event-streamline-by-line. - Discovery + reconnect orchestration — copy from the discovery + reconnect recipe.
Versioning
alpha-sdk-client follows SemVer. Every release is documented in the package CHANGELOG, available on PyPI.
