Skip to main content

Python client for the Alpha Camera REST API — control Sony cameras via REST. Auto-generated from the OpenAPI spec via Fern.

Project description

alpha-sdk-client

Python client for the Alpha Camera REST API. Auto-generated from the OpenAPI spec via Fern.

Install (local development)

pip install -e .

Usage

from alpha_sdk_client import AlphaSDKClient

client = AlphaSDKClient(base_url="http://localhost:8080")
cameras = client.cameras.list()
print(cameras.cameras)

Async

from alpha_sdk_client import AsyncAlphaSDKClient

client = AsyncAlphaSDKClient(base_url="http://localhost:8080")
cameras = await client.cameras.list()

Recipes — SSE, live view, server lifecycle, discovery

This SDK covers every REST endpoint. For the patterns that aren't REST (real-time events, frame polling, spawning the server) use the copy-paste recipes in docs/recipes/:

Pattern Recipe
Real-time events (SSE) Recipe 1
Live view frame polling Recipe 2
Server subprocess lifecycle Recipe 3
Camera discovery / hot-plug Recipe 4
Retry with backoff Recipe 5

Regenerate

From the repo root:

cd fern && fern generate --group py-sdk --local

Only the generated source at src/alpha_sdk_client/ is rewritten; pyproject.toml and this README stay put.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alpha_sdk_client-0.2.0.tar.gz (57.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alpha_sdk_client-0.2.0-py3-none-any.whl (110.1 kB view details)

Uploaded Python 3

File details

Details for the file alpha_sdk_client-0.2.0.tar.gz.

File metadata

  • Download URL: alpha_sdk_client-0.2.0.tar.gz
  • Upload date:
  • Size: 57.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for alpha_sdk_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b3f99881dbbf7d43a8751db3be2a30728db43a84591fb1d515bf81eecdba2a82
MD5 1117d57f72d345636e049acf16c9ad0c
BLAKE2b-256 4e635b73e11f3a36947ffc862b1865ec6a10ade8a1dc494cbb8975b5240e5d3f

See more details on using hashes here.

File details

Details for the file alpha_sdk_client-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for alpha_sdk_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 424783f5a6fa16aadce0e3af99ae4ddd072f300d1176b6419e32a2ef0aac5a43
MD5 4cfa8fb886c7afc9282323c390256074
BLAKE2b-256 bc4f7eb6ac14450eea44a4741eb2466cf217e6ea95fb92bf1a21d16e23dafafe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page