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.1.0.tar.gz (58.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.1.0-py3-none-any.whl (110.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alpha_sdk_client-0.1.0.tar.gz
  • Upload date:
  • Size: 58.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.1.0.tar.gz
Algorithm Hash digest
SHA256 d380a182424d759fba457d642f025b433199f8af3874f531d7c5501a01826b33
MD5 c39e06a64e2dcba9b87e03ec3a9c3c61
BLAKE2b-256 fb33dfe8536a5a3131d4e61cd684bb580b4e00e7c51d882194eac51fbdbeea00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alpha_sdk_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb203fb2a20a2b076c392ada8a7512559283d554c09bc5879096de0084d6312c
MD5 9213e4464ea98b2f515fe1b40a3b5b50
BLAKE2b-256 c1e3928f355bea5111f58858fb6290fc66b58538f1bfe0431fba4a7262ea2e2c

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