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.3.0.tar.gz (58.4 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.3.0-py3-none-any.whl (111.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alpha_sdk_client-0.3.0.tar.gz
  • Upload date:
  • Size: 58.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 659edbf6e3e00544054cf044420cfe13ae8710f975b2b3df0691e5dd2218e597
MD5 6cd36c4ecba19101cdd09c9c2646a572
BLAKE2b-256 4a718142f54a242d229b721ba4fb2b4073d73117dd807aa0773e1ee83840e3b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alpha_sdk_client-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71e94b68aa8c3263b201e78f493a08ba0fc9ab06c933f5f0f3a29218faf7ff8f
MD5 80d4d2b1f06a1f3cf5c7a81e6d3fadfc
BLAKE2b-256 2ec2fc16e364a5bbddc71e44e5aa9079873c2c6e784fd070dd73d670cbf2acb2

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